TMJ pain can be quite stressful and ironically often triggered by stress. Overworked and high muscle tension can disrupt the delicate balance between muscle-jaw-teeth, so can grinding and/or clenching .  The solution usually involves some initial medication to reduce pain, time for healing and some physical therapy, and prevention via occlusal adjustment and the correct appliance for your situation.