What is your plan if your SO can't work?

I was a stay at home woman. But my boyfriend and I have been getting into arguments, I moved in with my parents. The relationship was bad but I stayed especially with the pregnancy I wanted a family. One night I got into a fight with him it was bad domestic abuse so I left. Now I am stressed and worried, I have to come up with a plan for it all. Do you guys have a plan in place if your husband cheats, leaves, divorce or dies? I wish I had a plan in place but sometimes you don't want to put yourself in that place