While garlic does contain prebiotic fiber, it is actually beneficial for those with yeast-related infections and may not cause bloating. However, those with small intestinal bacterial overgrowth (SIBO) may want to limit their intake of garlic.