I am not a med professional, but during several years of extreme anxiety, I had a similar symptom and when I am at the edge of managing my stress it recurs. Because the brain and gut are interconnected through nerve systems, often folks with anxiety develop Irritable Bowel Syndrome . . . there are different manifestations from diarrhea to constipation to all sorts of stomach pain. . . . for some, there are non-prescription therapies such as Immodium for diarrhea . . . because mine was intense pain that was definitely related to anxiety (had loads of tests including a colonoscopy), docs did not prescribe pain meds either . . . what helped me but it is not a quick fix was identifying the anxiety triggers, dealing with them, and now I use just a different lifestyle and it seems to be working in combination with mindfulness.
I, like you, just wanted it to go away . . . . at the worst, there were about 6 months when all I wanted to do was cry or scream . . .
My advice is for you to contact your doc, ask if it is or could be IBS and what types of meds are available that would not trigger an addiction . . . .the only thing that really helped me was getting to the root causes . . . I am so sorry that you are experiencing this because if it is similar to what I experienced, it is so life disrupting but get back to the doc for a chat . . .take care, kc