A reason why diets affect this situation so much is two-fold. First, a diet affects microbiota, causing stagnation and proliferation of selected species. Second, the diet affects cells and its organelles, especially mitochondria. For example, some acquired mitochondrial damages can be reversed by a sufficient supply of vitamins and minerals in combination with the right balance of carbohydrates and fats in the diet.
It is worth to mention that one has to eliminate the initial disruption factor that caused the problem in the first place. Be it infection, poison, or something else. Otherwise, the chances of recovery are dim.
General rule: Get your 100% daily values of everything. If you have worries about specifics of nutrition for yourself, a nutritionist or similar specialist would be the best option, as it also depends on any underlying conditions you have.
Almost everything online wrt yeast seems like Goop-level pseudoscience.
I’m celiac and always looking at food related illness.