I've tried to provide a different take on this issue in post 285, if you'd like to take a look.
But the Catholic church does allow for annulment, on the basis that some "marriages", though performed ceremonially on earth, and even perhaps "consummated" .... are not joinings that are sanctionable under God's Law.
I am not a Catholic but certainly know that the granting of annulments has been WIDELY abused by the Catholic church. Nevertheless, the principal upon which annulment is based, is sound to my thinking.