Hi welcome to Health care magic forum.
Thanks for calling H.C.M.F.
You are having rapid heart beat, pain under the ribs, and tummy pain and tenderness. It is repeating as well.
It appears to be the gastric irritation, due to diet habbits, peptic ulcer
, rearely may be pancriatitis.
I advise you to consult a gastroenterologist
for diagnosis and treatment. You may have to go for gastroscopy besides other routine tests for confermation.
I also advise you some diet recommendations as avoid taking more of spices, junk foods, and oily foods to avoid gastric irritation by foods.
Wishing for a quick recovery.