I can relate. I’m extremely FODMAP-intolerant. Onion and garlic are the bane of my existence, especially since they’re in literally every ready-made food that exists.
Fodzyme is an enzyme that breaks down certain FODMAPs, particularly fructans which are found in onions, garlic, and wheat. There is currently only one other product on the market that breaks down fructans that I know of and I think you have to be a clinician to buy it. Fodzyme is pretty expensive and works so-so for me, though a lot of people seem to have good results with it.