This sounds like an oral ulcer, that usually settles within a week or so. avoid hot and spicy food that comes in contact with the area
Next Steps
apply an oral gel for three to four times a day, you can also apply benzocaine 5 mins before eating so that eating does not gives you any discomfort
Health Tips
go for a check up if ulcer persist beyond a week or increases in mumber