Re: Jaw pain
Bruxism (teeth grinding) is a common feature of many patients with anxiety and can not only damage the enamel and alignment of the teeth, it can also be the source of a great deal of pain at the masseter muscles from fatigue. It can either exist as chronic or episodic pain and is sometimes accompanied by mouth-breathing at night which often results in something known as geographic tongue, wherein the tongue appears to have white or scarred patches in various places that usually dissipates over the course of each day.
Infection of the bone is a little more uncommon and the associated pain can be quite excrutiating. While it's remotely possible, the more likely case would have been an infection at the tooth bed or terminal nerve. Although more suspect, I would have been surprised that your dentist would not have been able to observe this to be the case. It could also be coincidental that you've been prescribed medication at a point when the pain simply self-resolved from either bruxism or similar insult.
In any case, sounds as though your fine. I wouldn't be concerned at all regarding a bone infection or other serious issue. It doesn't appear to have been the case.
__________________
Best regards and Good Health