Thanks for writing to us.
It look like a case of
irritable bowel syndrome if following criteria is satisfied-
has had symptoms at least once per week for at least 2 months,
is growing as expected, feeling relived after passing stool,
is not showing any signs that suggest another cause for the symptoms.
I suggest to do
colonoscopy,
stool test, usg to diagnose the condition.
Avoid foods high in fat,milk products, drinks with caffeine
drinks with large amounts of artificial sweeteners, which are substances used in place of sugar, foods that may cause gas, such as beans and cabbage.
Probiotics are also helpful.
Hope I answered your query.