In addition to what Shelley mentioned (and thank you so much, Shelley), it also might be a good idea to avoid foods, snacks, etc., that require a lot of chewing or effort - such as some breads, gum, any munching on ice, any food that isn't easily eaten.
For the longest duration I was on a soft food diet - to avoid TMJ surgery to the best of my ability.
Shelley is right; with the proper treatment the pain can dissipate. And, once it does "calm" down, during times of stress, just be mindful not to grit or clench. I know, it's not always easy but it is essential.
A maxillofacial surgeon, neurosurgeon and neurologist, along with a TMJ clinic have treated mine over a number of years. Bottom line is: seeing someone who understands and feeling beneficial results/effects

.
__________________
".... This world wasn't built for people in wheelchairs ...."
.