It sounds like you have a combination of anxiety and depression possibly caused in large part by the previous job you had and your current situation. Your best bet is to try to tackle the issues you have and find solutions whether they are skill based in terms of performing relaxation exercies or counseling based to allow you to talk through things or medication based or even a combination of all 3. Im talking to you here out of experience, god I had a workplace from hell and I still haven't fully recovered from it! I suggest you hop to it because the longer you leave it the harder it will become. I wish I had someone tell me to go seek help 5 years ago!
If you still enjoy programming there are places out there which do have a good work/life balance. You just have to go and look for them. Www.glassdoor.com is a pretty great place to gain insight into the work conditions before you even consider applying for a position. Take heart in the fact that you're a girl. A lot of places may not be hiring men but they may want to even up the typical gender inbalance in the field if they find the right candidate.
Most people are nicer than their online personas. Considering what I have seen thus far of you and the way you convey yourself here not in your content but how you present yourself in general moreso you're a particularly nice and worthwhile person. However you have to believe this too. One of the biggest barriers to getting help is a belief that you're not worthwhile to recieve or even ask for help. However once you get help that barrier doesn't exist. You may have a mental illness so you may have to do things inspite of what you feel inside.
<3
Tease.