Pain only sometimes

I’m 3 months postpartum and every once in a while my right side hurts really bad for 3 secs when I pee but it then goes away and it happens once in a blue moon not every day. What can it be ?