Same thing happened with me, the gas pain was the worst.
I was given an IV gas medicine, I have no idea what it was.
But I think what really helped was sipping on water, I couldn't drink much but enough to throw up a bit, and I burped a lot doing that, then felt much better, kept doing that until I was no longer in pain.