The symptoms you describe sound like food intolerance. This is a condition due to the inability to digest and absorb certain food substances. The undigested food substances are metabolized by gut bacteria to produce gases, which in turn cause the symptoms of 'indigestion'.
Studies show that dietary modification is the most effective way to improve symptoms. Medication is rarely helpful. The problem is that many patients are not able to identify what food substances they are intolerant to on their own. Further, as t people can become intolerant to foods that they could previously digest easily.
Hydrogen/ methane breath testing can help to test for lactose and fructose intolerance, which are two of the more common types of food intolerance. The other types may be identified through a low FODMAP diet. This often needs to be done under the guidance of a specialist dietitian. These services should be available in any tertiary hospital or digestive group practice.
Less commonly, the symptoms can be due to an underlying medical problem. If your symptoms persist or worsen, you may want to consider seeing a doctor to ascertain this.
I hope this is helpful.