At first, this problem comes from stress, so remedies for that will need to be found. Next, you'll need to make sure to consume fiber and olive oil so as not to be constipated.
What the science says: irritable bowel and bloating
What published research says about the remedies mentioned above, for context — these studies address material causes; healing belongs to Allah.
Irritable bowel and bloating
Peppermint essential oil in enteric-coated capsules relieves irritable bowel syndrome according to meta-analyses (Aliment Pharmacol Ther, 2022) (J Clin Gastroenterol, 2014); soluble fiber (psyllium) and probiotics have also proven effective (Lancet Gastroenterol Hepatol, 2020) (Gastroenterology, 2023). Fennel, anise, cumin, and activated charcoal reduce gas. Precaution: take charcoal away from medications (it absorbs them); blood in the stool, weight loss, or nighttime pain require a medical evaluation.