Painful

I need some advice of what this is and how to fix it faster. Around midnight I started getting this horrible pain in my upper stomach lower chest area. At first I thought it may be a poo but it didn't help any. Then I thought the baby may be in my ribs but no matter what position I was in or where I rubbed it didn't go away. Then it took my breath away and I was having a horrible time breathing. I was getting all hot and sweaty so I had to turn on my fan (its like 46° here). My boyfriend being the great guy he is (eye roll) told me I needed to suck it up because I've had an easy pregnancy and it was probably just bh. I finally was able to lay on my back eventually rolling to my side while he rubbed my stomach and I struggling to breath. Just as quickly as it came on it went away (this lasted an hour and some minutes). It was a constant pain that did not go away during this hour time period. Do any of you have any idea of what it could be and how I can fix it?