Welcome to the forum. I am new here myself.
I had a very similar occurance a few months ago. Granted I had struggled with anxiety well before that incident, but waking up in the middle of the night threw my anxiety into over-drive I guess.
Just as you said, I was sleeping comfortably and was suddenly awakened for no reason at all in the middle of what felt like a panic attack. I could not breathe at all, and my entire body felt paralyzed which only added to the fear already present. I finally was able to force myself out of bed and walk around, but I still could not breathe and was gasping for air. Looking back, I believe that I merely FELT like I could not breathe, rather than actually being depleted of oxygen. Either way, I did not sleep for then next several days at all. I lost 12 pounds over the course of the next two weeks from not being able to eat, and it has now been several months since I have been able to sleep without waking at various times throughout the night. I have not had another panic attack like that since, but on a daily basis my symptoms are quite severe and rather debilitating. That single incident caused so much anxiety that I have yet to be able to shake.
You may want to read up on "Sleep Paralysis" as well. It is a fairly common occurance when people suddenly wake from a deep sleep before their body has a chance to come out of that deep state. Anxiety can certainly cause your body to wake from sleep as most of us who suffer with it know. It is a naturally occuring thing that does not really cause any harm to your body, but it certainly scares most people half to death when it happens - which is completely understandable. It helped me to read about it, and I am an advocate for NOT Googling health conditions and symptoms.