I went through about a year with panic attacks that woke me out of a sound sleep. I would wake up, wait for it to pass, and go back to sleep. Then it would happen again. This would go on all night long, so I would get up and do the computer or someother thing. I was exhausted and a complete depressed and anxious mess in the morning.
The first thing I did was go to a therapist. Sometimes we don't why we are having the panic attacks. There is some fear deep down that we may not be in touch with, or some stress we are not aware of. The panic attacks usually come out of nowhere, when nothing is seemingly on your mind. But there is an underlying cause and a good therapist can help you a lot.
I rarely have them anymore, but because of the tools I have been given, I have learned to ride them out on the rare occasions I have them. I have learned I will not die. But it took me a long time to get there and therapy is where I overcame it. Best wishes and God bless.