Hi and welcome to HCM.
It sounds like gallbladder
issue and this is most common cause of such pain.you need to do ultrasound
to see is there some stone or other gallbladder disorder. also it may be caused by gastritis
or gerd so if gallbladder is ruled out you should do endoscopy
to verify your stomach mucosa. Till that try to change your dietary habits,eat less fats,fried food,alcohol and coffee.And ask your doctor about some antispasmodics and antiacids medicines
Wish you good health.