I get those once in a while, OUCH

I"m sorry!
What works for me is when I feel it coming on, to take the Azo Standard stuff immediately and start hydrating with lots of water and cranberry juice (100% juice, NOT the cocktail). I've nipped a few in the bud like that. That Azo only works if you catch it in the very very beginning.
I hope you feel better soon