Thanks for posting your query.
Since you did not find relief with medicines you can go for surgical management.
There are many surgical procedures for gastric ulcers
Chances of ulcer transforming to cancer are there though rare.
Consult a general surgeon
, he is the right person.
You can also directly consult a surgical gastroenterologist.
Hope I have answered your query.
Wishing you good health.