Is there any connection with type of diet?? It could either be related to coeliac
D ( wheat intolerance) OR irritable bowel syndrome
. Former can be diagnosed by doing blood test
& later is diagnosis of exclusion. You should get bloods checked for Fe levels, liver & kidney fun as well as pancreatic enzymes+ inflammation markers.
is asymptoms stool samples neeed checking also