You’re not alone! Often referred to as runner’s tummy, unfortunately it’s quite a common problem with long distance training.
Make sure you’re eating a balanced diet and you’re not running too soon after eating. Consider reducing your caffeine intake and keep yourself adequately hydrated. If the problem persists then you should speak to your GP.