Sorry to hear you're not coping well. I was once in that place too (look at my previous post on profile x) and have almost got to a point of giving up because I didn't have control over anything anymore. However, with the right support and guidance, you can go through this and come out better and braver on the other side.
First off, sad to say a long term relationship has ended but if he can't handle you at your worst, then you need to have someone in your life who can. I know how much it means to have a supportive partner, but do not forget that you have friends and family who love you and who are just waiting for you to open up to them about your struggles.
Next, talk.. talk.. and talk some more. Talking is therapy (for me) and the more I talk about what I am going through, the more my brain knows what is real, what is not, and what I have to do to change my circumstances. If you think it's hard to talk to friends and family, seek the help of your GP to refer you to someone who can help. I am currently undergoing one on one counselling sessions (through steps2wellbeing.co.uk/) and I find that it has helped me developed coping strategies for times when I feel like the world is crashing down on me.
Finally, make yourself the priority. You have only one body - look after it. The money, the job, the relationship, the worldly desires can follow right after you have sorted your health out. Easy for me to say, I know, but if I could give myself the same advice 3 months ago, I would not have come to the point of attempting to end my life.
I have only been on this community for a couple of days but find that it is helping me realise that there are a lot of women out there who have worse cases than I have and it is sad, but we can all be here for each other to help. xx
Stay strong girl, you WILL get through this! x
Lots of love and positivity sent your way,