Wow, that's a lot of gas.
I apologize if you have already thought of this, do you avoid gassy foods? Some are more obvious to avoid like dark leafy greens and beans but some foods I had no idea would cause gas. I know I was surprised when I found out that apples are gas-inducing.
I also apologize if you have already talked to your doctor about this issue but they may be able to run some tests to check your gut biome.
Sorry if I wasn't much help.