Try something FODMAP?
The REAL medical FODMAP is really hard. I had to do it for epilepsy.
It has now somehow caught on for losing weight :') (kinda sucks.. because it is an actual serious medical diet that is actually dangerous to try). But these people for weight adapted the diet more...