I have mental health problems, have had for 20 odd years, I've fought it, hid it, done well for myself both in qualifications and work and up to five or so years ago thought it was under control, only a couple of people knew there was anything there, then it all crashed down on me and as I broke down very publicaly everyone knew.
I was incredibly lucky to have private health care (Nhs provision for mental health issues is disgraceful) and have had (and still am for that matter) the best care money can buy.
I now function quite splendidly most of the time. I also have gone through several reincarnations, taking hobbies and making money from them. I now have my own dog grooming salon, I spend my days with my dogs and other people's dogs, my dogs keep me level. I still do a bit of shearing on the side in the summer.
I don't use computers, only my iPad, I don't use a mobile phone, I have created my own bubble that has as little unknowns as possible and I'm happy, I control me, nobody else controls me.
Just doing things for yourself has made me better, I have some self esteem now
Best advice I can give is find something that you can do for yourself, use the time when there is no work to develop yourself to change your reliance on working for others and work for yourself it is so rewarding, at the same time identify what your problems are and manage them as honestly as you can so those strategies work in the real world , you can't manage everything but life can be a whole lot easier just by accepting yourself and being honest with yourself