@Steverpeeps I’ll tell you my short story. I am very bad at swallowing pills and one evening I took a big generic ibuprofen reluctantly because no one ever accepts that I have trouble swallowing pills (but that is beside the point, I just mention it because it really bother me). Anyway, the next morning I woke up in incredible pain in my esophagus. I went to the hospital and they kept saying my stomach, and I said, “no, my esophagus, I am afaid I scratched it on a teabag staple or maybe a bone or something, that is how it feels.” The pain was constant, no relief. They took an xray of me and somehow I got lucky and they saw something odd on the xray. They scoped me and I had mega huge ulcers in my esophagus, seems the pill had not gone down well, and laid in my esophagus all night and ate away at the lining of my esophagus. Just before I was discharged with a prescription and advice to swallow a teaspoon of chloroseptic every so often for relief (which really worked by the way) the nurse said to me, “there was a problem on the xray, it should not have shown anything, it was a random mark, if you had not been adamant about thinking something was poking or stabbing you, they may not have found out what was wrong.”
I still take ibuprofen, but always with several ounces of water and at least a few crackers. I have never had a problem again. If one of the drugs you take is known to irritate the stomach or cause ulcers, maybe this will help you, or someone else, or help you some time in the future.
Another thing, I had very bad stomach pain for a long time off and on; very bad. Literally up in my stomach, kind of behin my left breast, but the pain would go through to my back. After a few years I had exploratory surgery and my ovary and tube on my left side was in a ball and stuck to my colon. The doctor separated my ovary from my colon and 95% of my digestive pain went away.