Hello,
My cat does the same thing, It only happens when she sleeps and her movements get pretty intense. I took her to the vet and she did have a thyroid condition and she was put on medicine for that. She does drool and the vet found no reason for her drooling.
But her sleep problem still...