Keep your chin up.. Just remember that jerk isn't losing any sleep over you. He stopped caring about your sleep a long time ago.
It's not fun lying awake every stinking night wondering what the heck you did wrong to end up in that situation.
It totally sucks waking up at 3am and feeling the same depressive cycle switching on again and again, when all you want to do is get some frigging sleep.
And all that time wasted, spent in a loop trying to process all the conflicting advice you've been given by well meaning idiots who've never experienced anything near where you have been through.
Waking "up" in the morning feeling like a zombie and can't remember what day it is, let alone what needs to get done.
Doctors prescribe antidepressants, mistakenly thinking it's just a simple brain chemical change that caused the completely messed up psyche, when in reality the problem was caused by an asshole who couldn't own up to their feelings, ripping a hole in the fabric of our universe, messing up our brain chemicals. (They may still need balancing, but they won't fix the problem until we can bring ourselves to address the root cause of it.)
The problem with marriage and other close relationships is we tend to bind our potential for happiness and wellbeing to another persons, and when the cords are cruelly severed, our identity is damaged in the process, along with our self worth.
It's not easy to give ourselves permission to stop mourning for the treasured thing we lost (of course it is completely natural need time to grieve).
However once we do, we can begin to retake control of our own future, we can start to find a solid foundation in ourselves, and nurture our own reasons for happiness. In the end we are stronger, better people, and able to deal with anything life throws our way.
I hope things improve for you real soon, so you can have a good nights sleep. I wish I knew the right thing to say that helped.
I know it can take quite a while to get back on your feet. I've really found it helps to know others have been through similar crap.