I find that low-impact exercises, like yoga, help. Resistance training is also a good approach. I find that focusing on the workouts distracts my OCD-like mind, which lowers anxiety and IBS symptoms. Diet considerations come along with that, though, as you need higher macronutrients like protein while keeping a low-FODMAP diet profile. So, the added benefit is that you can focus on building muscle while reducing stress and subsequent symptoms.
A recent good article is linked here that provides nutrition tips for those interested in trying to build muscle through resistance training. It's kind of a tangent to my original thoughts, but I found it helpful!
Optimizing Nutrition for Muscle Building with IBS
https://weightsciences.com/f/optimizing-nutrition-for-muscle-building-with-ibs