Yes i had a bad panic attack that woke me up in my sleep. You were probably having a bad dream and it caused you to react. Possibly post traumatic stress from a past event? I woke up with my heart pounding and dizzy.
Have you had anxiety issues in the past? Are you under a lot of stress right now. For me, when I was going through this, I would wake up in a cold sweat after having really bad dreams....nightmares can be quite common when we are under stress in my opinion.