You have an amazing heart.

still able to consider someone who hurt you and not forgetting about your kids need for a father.
You obviously love them very much and they are lucky to have you, so many mothers give up where you stay strong. Taking your illness into account to decide what's best for the kids is very tough but shows your love.
But From what you've said about your husband I feel like he would be very unfit hold sole custody of the kids. Maybe a compromise may be reached where the kids could stay over a relatives house or even a foster home. Both you and your husband would be able to see them.
This will let you leave your abusive husband and you can move somewhere safe. Where you can focus on getting better and overcoming your illness, and after some time you will be stable and well enough to claim custody.

There are many options out there