The entire tone and theme of scripture is that human lives and compassion are more important than theology, which is often skewed by personal bias.
Proverbs chapter two is clear that it is God's will that anyone oppressed by the evil man be free from him. That includes wives. That includes divorce from abusers. Mainstream marriage and divorce theology is biased and flawed and has cost far too many lives over the centuries.