إYour stomach hurts when you eat due to the following:
Allergy to some foods such as nuts, eggs and soy.
Irritable Bowel Syndrome
Having chronic inflammatory bowel disease, which causes inflammation in different parts of the digestive system
Infection of stomach ulcers
Constipation
Increasing the intake of artificial flavors