Hi
Welcome to the forum!
What you have is probably bruxism. Involuntary clenching of teeth at night during sleep or bruxism is the most common sleep disorder. It is aggravated during periods of stress and by presence of worms in gut (can be diagnosed by a stool test).
Treatment is a combination of night guard, relaxation techniques, de worming, breathing techniques etc.
The other possibility is an associated TMJ. Please consult a dentist.
Hope this helps. Please let me know if there is any thing else and do keep me posted. Take care!
it's probably TMJ; you might want to consult your dentist and get a custom made bite guard made for you. I know it's helped me immensely.