feeling down

Don't mean to be anonymous but I rather not feel ashamed 
I'm completely lost much feelings for my kid, I still love her but lately I don't know what happened. I been having trouble sleeping lately, I would stay up to 5-6 am and only get 2-4 hours of sleep everyday. I cry through out the day. I pretend to be happy, but I'm not and I feel completely empty. Yes, I have mental health issues. Sometimes my kid get me so frustrated when she's about hurt herself but she's only a few months. I get scared she might get hurt. But I also don't want to hurt her. But I think I'm actually losing it. I been down a couple weeks or so, I'm also been trying to control my panic attacks