Sounds like you were having an acute indigestion attack. I had those for 25 years before finally having an emergency gall bladder removal. Nothing would help me sleep except laying directly on a heating pad. Antacids might help if you ever do that again. Good luck