Gas? I’m not sure

Rickia

I had to pee and had to wait to use the bathroom and idk about you guys but if I hold my pee gas usually follows and I had to hold that in as well because I knew urine would trickle down if I didn’t hold it in. I was in the shower and had a sharp pain at the top of my stomach I know it’s the gas trying to pass through but it just will not come out. What do I do? Has anyone had this happen in early pregnancy as well?