There are many causes for this, so your boyfriend needs to see his doctor. Tell him to stay away from spicy foods until then.
Welcome to the gastroenterology community! Has he been diagnosed with gastritis? How long has this been going on for? Has he seen a doctor about this?