Try Asafoetida powder (Hing root powder), just a tiny pinch with bean or lentil dishes.
Why would that work?
Asafoetida/Hing[0] is widely used in Indian cuisine and it does help, anecdotal evidence of course. How/why it works, is something I can't say.
[0] https://en.wikipedia.org/wiki/Asafoetida also talks about this