Extremely painful gas pain, is this normal??!?!

Ok I had a borderline freak out moment. I’m 17 +3 with my second so I deff know what labor feels like.

I had full blown contractions and pressure like I was going to poop. I sat on the toilet in agony waiting to poop or pas gas and couldn’t. I didn’t want to panic but the fact that the contractions were like every 2 minutes on top of the rectal pressure , I started freaking out thinking it was preterm labor. The pain was excruciating, like completely unbearable , I was in tears. I tried to wait it out to see if It would pass or ease. I laid down, got in the bath, nothing was working. I finally caved and had my husband take me to the ER. They wouldn’t see me right away because they were packed. As I was waiting I got the strong urge again to poop, I rushed to the bathroom and again was hunched over dying in pain, my stomach was rock hard, and finally I had a super loose BM followed by a lot of air coming out and had instant relief. I ended up having my husband pick me back up.

I never experienced gas pains like that with my first and this felt like full blown labor. Had me in complete panic.

Has anyone had excruciating gas pains like this before ?! Is this normal? I just had an ultrasound 2 days prior and baby was great. I also have a Doppler and checked him as soon as I got home and everything was fine. Also no bleeding.