I use to suffer from this, when it first starts happening it really does feel like the worst thing ever, and I feel your frustration ): .. I would wake up not being able to catch my breath because I thought my heart was going to beat out of my chest, I would try to lay down and close my eyes again, or slow my breathing but majority of the time I would end up having to get into a cold shower at 3–4 in the morning just to make them stop and that was something that helped me a lot. I suffered from panic attacks for the longest time, 6–7 years or so.. Over the past year and a half what I started doing was just telling myself over and over again that it’s just a panic attack, I know it feels like you’re dying but you aren’t, and a panic attack CANNOT kill you. Once you convince your brain that you know you aren’t going to die and you’re just having a panic attack they will likely stop, or at least happen less frequently and not last as long ! my worst ones could last up to 20 minutes, stop, and come right back. Also if something is stressing you out in your life somewhere you may want to get away from that too, if it’s a person I mean, hope this helps !