This kind of pain are usually science of gastric ulcer and I would advise you to consult a Gastroenterologist who will confirm it by endoscopy. Gastric ulcers can be quite harmful if ignored. Medicines like rabeprazole, Omeprazole, pantoprazole taking any one of them one tablet daily empty stomach will help you overcome this problem up to a great extent.
Health Tips
avoid any kind of Spicy non veg food. Eid green leafy vegetables and fruits.