This sounds to me like you have a food intolerance or allergy that's making you bloated and generally upsetting your stomach.
For a few weeks (if possible, I'd recommend 28 days) try eliminating all wheat, gluten and dairy from your diet and see if the bloating, and the trapped wind reduce.
Wheat, gluten and dairy are the most common food intolerances (not including nut and shellfish, but people generally know if they have those as the reactions can be pretty severe).
If it is one of these, then you should see reduced bloating with a week or two.
The reason for saying to stick with it for a few weeks is that it should allow your gut to repair any damage that's occurred because of the intolerances / allergies.
After the 28 days, try adding in a little (note: I mean little) bit of each food group, one at a time, and see if you start to bloat again. If you do, then you know what the issue is, and just avoid that particular thing in the future.
Few years back I went through the same thing, though I did have a few other, more "interesting" issues as well. I did an elimination diet for 28 days where I only ate green vegetables, meat and fish, and lost 4 inches from my waist without any noticeable change in strength or other proportions (turns out I have a pretty bad wheat / gluten intolerance).
Other things you can try are:
- Eating fermented foods (kimchi, sauerkraut, etc)
- Taking a probiotic
- Supplementing with L-Glutamine (powder preferably)
- Increasing your green veg intake