Grinding your teeth (usually subconsciously) can be an event during the day, during sleep or both. Excessive grinding can lead to a cascade of damage to the teeth, musculature and joint.
It may be necessary to address the damage first then the cause. Once repairs are made further damage can be prevented with a bite guard that will reduce the grinding and protect the teeth. Medicine may be prescribed for reduction in grinding also.