This is likely due to the temporomandibular joint disorders.
Muscle relaxants like cyclobenzaprine (flexeril) 5 to 10 mg ate bedtime should be helpful in avoiding this problem.
Please see a maxillofacial surgeon for further evaluation.
Is this an over the counter drug ?
I'm going to see my DR soon so i"ll him about it than.