For whatever its worth:
As I have stated on previous threads, I believe that Christ gave the Apostles the power to bind and to loose.I believe, also, that that authority has been passed down by and through the Apostles to the bishops.YMMV.
Canon Law states that a marriage is forever. The Church (mine) is not in the business of giving divorces. But the goal is , after all, to save souls.
The bishops have the authority, the Church states, to apply the law strictly (akribeia) or leniently (oikonomia).
If there is a marriage that is so toxic, so abusive, so harmful mentally, physically and spiritually ,that a soul is embittered or lost, what has been gained?
How many instances have we heard of women who have murdered their spouses because they couldn't get out of a marriage? Granted, these were not all because the church said they couldn't get a divorce. But for whatever reason,staying in the marriage led to greater harm than its dissolution would have, maybe even the loss of salvation. And how many children have witnessed the cruelty or abandonment and lost faith forever.
The church has mercy on those who have suffered in a marriage. Not, I assure you, just, 'I'm not happy". But Canon Law may be applied leniently in these cases. I believe Christ has provided for that, as I said, by his conferring on his Apostles the power to bind and to loose.
My church says, in essence, get a civil divorce to get you out of the toxic situation, and then the Church will affirm or deny , according to the circumstances of the case,whether you can go on to another marriage.
I have said all that to say that I do not believe Christ ever meant for that law to apply without any mitigation or mercy.
That's my churches teaching.