i am no professional or anything, but i would strongly recommend you finding a therapist... if you cant afford one, there are hotlines that you can call free of charge and they talk you through it. im here if you want to message me more, but i know that when im feeling so close to the edge, i call hotlines, its good just to hear that voice of another person, and they really seem to care. you dont have to tell them your name even, unless you want to, and they only know what you tell them... you sound ike a very strong person...
about the abusive husband, that may be a trigger for your self harm at points, and it could make you worse. i understand that you may not want to leave him because you love him, or for other reasons (kids...) but there are shelters out there you can escape to, and he will never know where you are unless you tell him... but if he is abusive and you dont get away soon, you WILL more than likely get worse...
im here if you need to talk... and i hope this helps a little bit...