Love hurts.

So I love coffee, but it always leaves me in so much pain. Today once again I couldn't control myself and drank coffee and now it's 2:30 am and I'm still up in pain. It gives me painful gas, my whole chest hurts right now and i was wondering if anyone got any quick solution for me. Thank you.