I remember years ago, when a friend's daughter was suffering from unresponsive ulcer medical treatment, that a suggestion to check the treating physician for Helicobacter was reluctantly tested.
The subsequent prescription resulted in the daughter's remission of ulcers within 2 weeks.
I haven't had a third ulcer (it's been about 20 years since the last one).