Everyone is different. But having panic for 23 years. I have learned a few tricks that work for me. If I get one in my sleep, I usually will PUSH myself to get out of the bed and try to shake it off before it gets out of hand. One other trick if you have one that will not quell is an ice pack. Put it on your chest. This helps reduce your heart rate and for mes, the coolness of it calms me quicker. And if we reduce our heart rate, we are less likely to go into a full blow panic attack. And even if you do, I hope these things will help you. I also always have a bottled water with me. Another thing (since you are speaking of the night panic) is cool wash cloth over your head. I know for me around my period, everything (including the panic attacks) tend to be amplified.
It is also important to find your own "space." It makes it worse when people crowd you (from my experience). I hate it when people try to tell me "it is not real, all in your head. " Ugh! At all times, try to find ways to divert your attention from what you feel coming. No matter what you are doing, be it sleep, relaxing, wherever it hits, just get up and try tro get your mind on other things.
Rest well I pray~