I've woken up plenty of times panicking but only once did I actually wake up with a panic attack. It happened to me during a time where I was constantly in a fatalistic and anxious state of mind and I couldn't let it out. Is there something happening in your life right now that puts too much stress on you? It could also be that you won't get them as often if you spend one hour before bed with low lights or doing something without any electronics. If you panic only after you dreamed, I'd say that it's a tell tale sign that you're bottling up or repressing too much or else it would happen during the day too. I suggest you pay attention to your stress levels during the day more and do something about them or at least acknowledge them and let yourself feel them. Cry if you have to, tears let out excess hormones. Try finding the cause of it during the day. Letting out stress in dreams is only temporary relief, if that something is overwhelming your body it will do it again.