Husband wants divorce bc my mental illness

I’m at my wits end. I’ve been dealing with mental illness my whole life. I’m to the point where it’s so bad that my husband told me he wants a divorce. I’m just tired of being this way. I’m making an appointment with a therapist to seek help. Has therapy helped you guys? I’m nervous bc I don’t like opening up, but I have to do something.