Recently I’ve started waking up almost every night at 3am sweating with a pounding chest, I’m assuming they’re panic attacks

I’ve never suffered before, any tips? Should I be doing or not doing certain things before I go to bed to help?