I have the same issue, I'm 34 weeks. I'm due February 25th when's your due date you should talk to your doctor! I scheduled a Doctor's appointment Tuesday to get checked!
Hey, I'm 38 weeks pregnant and I know how u feel. I had it happen to me in the middle of the night n I go to the bathroom n nothing comes out but pee. But I still have really bad stomach pain n what I do is lay back down n try to rest n most of the time it goes away.
Im 32 weeks and had that a few days ago. I lay down & rested which helped a lot :)
Sounds like contractions/preterm labor. I would call your doctor ASAP and get checked at labor and delivery. Good luck!