It sounds like a food allergy/intolerance. However, there are other, rarer causes. Don't try stopping gluten because you need to eat it to get tested for Celiac disease, but I would suggest you try eliminating dairy for a week.
Welcome to the gastroenterology community! Have you tried eliminating any foods from your diet like lactose or gluten? Have you ever seen a doctor about this?