There's a few things I would suggest.
- Eat less beans until you work your way up to tolerating more and more.
- Separate raw from cooked foods. Try not to eat them combined. Raw ultimately causes more gas and bloating
- Drink plenty of water when you eat fiber heavy meals. It is not recommended to drink a lot of water with your meal, so drink plenty of water before or a short while afterwards. However, water is critical to proper digestion.
- Natural probiotics, like sauerkraut, kimchi, kombucha should help as well
- Maybe a bit of cider vinegar