Immediately stop eating spicy food, maintain a light diet, and in severe cases, you can take some medications that inhibit or neutralize stomach acid secretion, such as omeprazole and compound aluminum hydroxide. If adjusting your diet and taking appropriate medication still cannot improve the symptoms of stomach pain, please go to the hospital for further examination as soon as possible. Consumption of spicy and stimulating food, if the gastrointestinal tract is not functioning well, the gastric mucosa will be easily irritated, leading to abnormal contraction of the stomach, or even stomach cramps, which in turn leads to stomach pain. You can reduce the stimulation of gastric mucosa by gastric acid by adjusting your diet and taking appropriate medications such as omeprazole and compound aluminum hydroxide, which can also improve the symptoms of stomach pain. In addition, in case of hyperacidity, chronic gastritis or gastric ulcer, the stimulation will trigger excessive secretion of gastric acid to damage the mucous membrane, which may also lead to aggravation of the condition, in which case, please consult a doctor in time. The drugs mentioned above should be taken under the guidance of a physician or pharmacist.