Get a check up done from a dentist
to rule out any local irritants like a sharp cusp of tooth, ill fitting dentures
etc. Even deficiency of vitamin c vitamin b 12 can cause ulcers. Stress
is also one of the cause. Once local factors are ruled out, he will suggest you some medications for the same. For further details, you may consult me.