I am sorry you are facing this challenge. It sounds like your husband has some mental health challenges that he needs help with. This is not something you can fix either, instead he needs to find a therapist and learn whatever it is that keeps challenging him. It's unfortunate but a partner can simply be too unhealthy to live with and have a healthy relationship with.