Hi ! From the history of yours, it seems that you are having hyper acidity with possible gastric/duodoneal ulceration. The pain in these conditions occur typically in empty stomach, and specially in late nights when the person may get off the bed and is relieved on taking some kind food. Your dietary habits are no known from the history. Anyways, you should avoid chillies and hot fried foood, and go preferably for a bland diet regimen consisting of more vegetables, and liquids. Also take frequent small feeds instead of one large meal so that your stomach does not remain empty at one time. Take plain
cold water as an emergency remedy for the acute pain in the stomach during night or any other time when you may not have any alternate remedy in your possession. Also you can try keeping the head end of your bed elevated a little so that the acid secreted does not get stored in your stomach. You ought to see your family physician now to be examined to exclude any other clinically appreciable pathological process in the abdomen, who may also suggest you for an
ultrasound abdomen or refer you to a gastro enterologist for endoscopic evaluation of your GI tract.
Other diagnosis which comes immediately into ones mind are
liver and hepato billiary diseases like gall stone diseae, or
pancreatitis. For excluding these problems,you have to consult a gastro enterologist.
Your have not mentioned anything about your bowel habits. If it is frequent and loose alternating with
constipation, you may be suffering from amaebiasis which also gives rise to chronic hyper acidity and the symptoms you have described. In that case the treatment is simple once you visit your family physician, and are properly diagnosed.
Wishing you an early recovery.