It seems that you might be having some ligament or muscle injury
of TM joint giving rise to this problem.
Take some anti-inflammatory medicines for 2-3 days.
Do not open your mouth wide open.
Keep your fingers on the joint while yawning.
Avoid chewing hard things.
Ok and take care.