No matter how rigged the courts are, it can't be worse than spending 100% of your money taking care of the two of you. You'll still need to stay in the same city for custody, but at least you can switch to a less stressful job.
Also, you should keep your eyes peeled for remote jobs.
"...but at least you can switch to a less stressful job."
Nope, the courts will force child support and probably alimony based on the current job rather than some lower paying job one might get during/after any divorce.