Serious question!

Okay so in late December I started having pains down there and finally went to my doctor and she said I had a yeast infection in my bladder. Well I had pills that got rid of it but sent me to the ER because I was allergic and didn’t know until I had a bad reaction to them. Anyways, I just go off my period and I’m starting to have those pains again! Has anyone experienced this before? Do you think maybe it’s my tampon brand I use? Or maybe I’m leaving them in too long? Although I never leave regulars in for more then 2 hours and supers no more then 3 especially if I’m really heavy. I’m about to make an appointment with her again before it gets too bad I was just wondering if anyone experienced it before