I am a teeth clencher from way back. I especially notice it during times of stress.
I recently got an inexpensive, $98, soft night guard for my lower teeth from my dentist. It has helped, but mostly I am doing my best to remain stressfree.
If I wake with a headache, I make a conscious effort to breathe more slowly throughout the day, and stay relaxed. I also chew like I have gum in my mouth throughout the day. It seems to help a bit, but maybe it's the placebo effect. Writing may be helpful in clearing the mind.
I don't think mine is med related, but I used to be a real type A person. I'm hoping you are feeling better. Being aware of a situation is the first step to solving it.