Occasional bloating usually comes from gas produced when microbes ferment fibre they are not used to. The fix is rarely less fibre — it is more diversity, added slowly.
If bloating is daily and painful, talk to a doctor. Otherwise, a synbiotic plus 30 different plants a week is the best-studied routine.