Do a postnuptial agreement with conditions exactly like if you divorced today to stop worrying about legal consequences of not divorcing now.
There's no such thing as a postnuptial agreement fully legally equivalent to divorce, though. A trivial example is your legal ability to marry someone else, but there are plenty of other differences.