I don't think it is a coincidence at all. I think all of the things you mentioned: not eating, abusive boyfriend and coworkers, working at a place that made you unhappy, popping pills, being depressed...all had to do with your system finally breaking down. The body is very resilient, but only up to a certain point. After a while of abusing it (mostly through no fault of your own) it gives up and makes you pay for treating yourself poorly, mentally, emotionally as well as physically. Luckily, you can retrain your body. It takes time and you might not feel the way you used to, but that's not necessarily a bad thing. Take one day at a time and know that each time you feel down, are cynical or are in a situation where you are unhappy (i.e. work, relationship etc...) you need to do what you can to get out of it. Your body, health and life depend on it!