Waking up, can't breath?

Sounds like a form of sleep paralysis, your mind has woken up before your body and thinking you cant breathe sets off a panic attack , google " sleep paralysis" you may recognise the symptoms