Maybe you should see a doctor.
Stomach ulcers can be caused by a bacteria or a virus, I can’t remember which. But there is a medication that will illiminate it ask your doctor. They test for it by taking a breath sample.
I had an endoscopy a couple of years ago for an unrelated thing, nada, in the digestive area.