Hello and welcome to e health forum.
The description of your history indicates that the cause of your pain is gall stones or cholelithiasis.
The treatment of this condition is surgical removal of the gall bladder.
But before the procedure can be done, you can try conservative therapy, so as to reduce the onset of more stones and resolution of the current stones.
Conservative management to avoid symptoms and control the disease include:
1) Avoiding mental stress and overstrain
2) Avoiding eating special food and deep-fried, and fat free food.
3. Be on a gall stone specific diet.
4) Lifestyle and Dietary habit changes: Paying attention to regular meals on time; Avoid excessive food and/or drink at one meal.
By eating right, one can avoid formation of gallstones and also flush out the existing ones.
You might consider consulting your general physician or a gastroenterologist who after a physical examination may determine the exact cause and initiate necessary interventions.
I hope this helps.