Hi welcome to health care magic forum. It has some thing to do with the gall bladder
only. The gall bladder will be constantly contracting to evacuate the bladder to allow the fresh bile to occupy the bladder. It could be physiological or pathological due to partial obstruction of the bile duct. Other possibility is the peptic ulcer
I advise you to consult a gastroenteralogist for diagnosis and treatment. You may need to get the gastroscopy along with other routine tests for confermation of the disease and to prevent the further attacks of pain.
Besides i advise you to follow some diet recommendations to prevent the pain bouts. Avoid taking more of spices, chillies, junk foods, and oily foods. Wishing for a quick recovery and thanks for calling.