I can't imagine all the facets there are to this issue. I've never been married. But I can repeat some basic things.
A Christian cannot leave (so I Cor. says). But has your wife left you?
This is good summary of the basics. There is an element of turning away from God in divorce. Jesus and then Paul were very specific about when it is acceptable to divorce, and it basically is when one's spouse is persistently unfaithful (which includes being persistently abusive). In both cases they are either not seeking God for help or not being willing to accept it (sometimes it is costly). In other words, they've already turned away from God.
Marriage is one of the images God has given us of the Father's connection to the Son: unity of love and will, and submission of Jesus to the Father as a role, but not in inherent value. This is one way to look at why divorce is a sin in the first place. Within God's nature is
relationship, but divorce is not a part of his nature at all. Divorce is a way to put a lie about God's faithfulness on display to other people (John 13:35) and angels (1 Corinthians 4:9).
(Believe it or not, the rest of this post is about struggling with the possibility of divorce.)
In matters that I do have experience in, I find it easy to be compassionate. So instead of asserting rules you need to keep that I see in God's Word (which is what some people without the pain of similar experiences do), what I would rather say is: You can't fix this problem on your own, and possibly not even if your spouse also wanted to fix it. You need God to fix it. He wants you to recognize this, and in any area of life
sometimes he lets everything crash so we can see that (for those who have enough faith to hold onto him). When we genuinely believe that and also know that God has promised to help us, then God will deal with it for you. Sometimes our fight is more along the lines of trying to trust God while we wait (through which he grants us more faith) rather than us acting on something we think he wants us to do.
Grieve, mourn and wail. Change your laughter to mourning and your joy to gloom. Humble yourselves before the Lord, and he will lift you up. (James 4:9-10, 1984 NIV)
“I am the vine; you are the branches. If a man remains in me and I in him, he will bear much fruit; apart from me you can do nothing. (bold mine, John 15:5, 1984 NIV)
To keep me from becoming conceited because of these surpassingly great revelations, there was given me a thorn in my flesh, a messenger of Satan, to torment me. Three times I pleaded with the Lord to take it away from me. But he said to me, “My grace is sufficient for you, for my power is made perfect in weakness.” Therefore I will boast all the more gladly about my weaknesses, so that Christ’s power may rest on me. That is why, for Christ’s sake, I delight in weaknesses, in insults, in hardships, in persecutions, in difficulties. For when I am weak, then I am strong. (2 Corinthians 12:7-10, 1984 NIV)
Paul's thorn was because God was living mightily through him. This drives people to the deception that it is they themselves who are doing these great things. It is only countered by faith and the kind of deep humility that comes only from God. This situation doesn't just arise when God is working powerfully through someone like Paul. Our lack of this deep kind of humility also prevents God from doing great things for us and through us. He has a storehouse of blessing he wants to pour out on each of us that we are unable to receive (Malachi 3:10) when we have not been strictly obedient.
God has commanded us to obedience because it is through this that we experience His Life that wells up in us to eternal life (John 14:14). Strict obedience to God is priceless to us for this reason—it is a path whereby we struggle or suffer and eventually experience more of God's life, which is
so wonderful it is seems to me to be an insult to God to even try to compare it to gold (1 Peter 1:7). It far surpasses the material worth of everything in the universe combined. It is through this that we experience more of the fruit of the Spirit (become more like Jesus) as well as the power of God in our lives.
This is supposed to be the pattern of our lives (ala Luke 9:23-24) until we reach maturity (Ephesians 4:13). It is why Paul (in another passage) celebrates his suffering, because it breaks him more deeply which causes him to experience more deeply his need for God. Along with the faith that God loves us and will always help us, God reveals more of himself to that person, in that person, and if ready, through that person. It is our lack of faith in Christ that prevents him from opening all the stops.
We need faith in Jesus and the support of the church as God designed it to withstand the pain of the trials and temptations. It is directly tied to the importance of building upon rock instead of sand. As it is, most of Christian America settles for a weak, almost dead, form of Christianity. America is one of the worst places to see individual and church maturity happening as it should. We are stunningly spiritually weak (in general). We frequently choose comfort or what is enjoyable over being moral, and we are afraid of even letting people know about our pain, let alone persist in seeking love and help from others because of it (one of the purposes of the church).
It's a lot easier to talk about than do. Even with this knowledge I have yet to rejoice when suffering (as we see some do in Scripture), although after experiencing it for a long time, I can finally mostly refrain from blaming God while in it.
I have written about these seemingly tangential issues it so that you might more easily see the enormous profit for you in persevering in accordance with God's will. However, do not forget that it isn't our obedience that makes us right with God. Obedience is for our long-term blessing, protection, and sanctification. If you believe in Jesus and he is your Lord in practice, then you are right with God no matter what happens (sin interferes with both).
Rejoice in Jesus, who loves you and will keep you in the palm of your hand no matter what. Praise him and be thankful to him in every circumstance. Make it your goal to please him. Try to arrange the rest of your life, including sacrificing things you enjoy, to make this easier. God knows everything you do and knows everything you need. God will bless you in this life and the life to come. Some of those blessings include a variety of things to make it all easier and life happier and more satisfying, too. And best of all, God will be your friend (Philippians 3:8).