As per your history it looks like a traumatic ulcer which should subside once the irritating factor is removed . In this case it must be the wisdom teeth . I suggest you to extract the wisdom tooth in order to her permanent relief .
Next Steps
Consult an Oral and Maxillofacial surgeon
Health Tips
Salt water gargle for temporary relief