Hi, I can imagine how annoying you might feel once you wake up and wondering about what all your thinking while you were asleep. I guess this is also due to over thinking. Have you lately been thinking a lot of certain things that is bothering you or you are trying to take care of it which is kind of replaying in your head subconsciously?
Next Steps
Try to stay with your thoughts when you are conscious.. Meaning acknowledge your thoughts when you are awake and make a list of things that are pending or are bothering you.
Health Tips
1. Meditation (Inhale/ Exhale ) breathing before going to bed would help
2. Notice if there are any worries, or physical symptoms