Anyone have experience with Bactrim for a uti?

I’m taking the substitute for Bactrim. I was prescribed it for 7 days, 2 times a day. I have bad anxiety so I’m super scared & read reviews, I couldn’t help it. Most are bad but I know people who have bad reactions are the ones to review it. Anyone have tips on how to reduce the headaches or other side effects I could possibly get?