Waking up panicking

Hi guys so I’m 16 and I have a horrible past I am traumatized by a few things that have happened As i also suffer from a lot mental illnesses but anyway I am scared to sleep at night because of what happened to me and because I get the same three sucidal nightmares causing me to wake up and have a full blown panic attack what can I do to make everything stop ? And Nice comments only plz