Waking up having panic attacks

ab
My ex just threatened to take me to court because I won't let him see my daughter, the story is complicated but here's half of it: he currently lives in two states, he was abusive, when I would let him watch my daughter he would knock out while she would be sitting there crying because she was hungry, he would constantly steal things, (stole somethings from ME, including my daughter's savings) & the worst of it all.. He sold illegal things..
I'm so scared right now.. I have a history of anxiety & depression and I've been falling back into it all over again.. 
I don't want my daughter around him or his family.. I'm terrified for her safety.. How can I calm down? Please help :/