Gas cramps that felt like contractions

Last night i woke up and i had what i thought were terrible gas cramps. But then i realized they felt like contractions because they were coming and going every minute only had maybe 4 or five of them. I got up and drank some water and went to the bathroom then i got really light headed i almost black out. I think maybe bc i was tired and got up to fast maybe that the blood circulation to my head was off or something. However it had me up almost the rest if the night feeling for my baby which he continued to move like normal. I just want to know what you ladies think.