Ulcers could be due stress or any nutritional deficiency. Since you mention of increased frequency, kindly get it examined by a dentist.
Next Steps
Nutritional deficiency can be identified by certain tests and the best way to destress yourself would be meditation.
Health Tips
Eating plenty of fruits and vegetables would be best way to improve your immunity.