Hello & welcome,
If there is pain in TM Joint & that you are able to eat solid food, then there is definitely some underlying pathology which should be diagnosed & treated as soon as possible.
If you spend some more days with the same situation without undergoing any specific treatment, then trismus
( spasm of muscles ) may get severe along with pain.
Take care of your diet , visit your dentist
immediately & undergo proper clinical examination to rule out any abnormality in TMJ
movements which can be diagnosed with the help of TMJ view (X-ray) advised by dentist.
Such condition may even develop by the presence of wisdom tooth or third molar specially mandibular third molars which are impacted. If it is so, pain is usually referred to TMJ or that whole side of the jaw.
This will also be diagnosed by your dentist taking necessary x-rays & treated accordingly. Use of Antibiotics & Painkillers along with muscle relaxants is very vital in this case but should only be taken after dentist prescribes so.