So if some food triggers an autoimmune response -- the solution is just to stop eating (well kind-of.) This idea is augmented and explored much more in oligoantigenic diets where you go about removing different specific food (e.g. bananas one week, eggs in another) from your diet each week until you can tell which one was causing side-effects.
There is a mental health analogue for this: meditation. You remove everything, you sit completely still and you focus on nothing. This would be the carnivore diet, but you can also go the oligoantogenic route, go about removing bad habits that are causing side-effects maybe video-games, Tiktok, instagram, or what-have-you that is just too much too fast.