The good news is that, depending on how effectively you and your spouse can cooperate to find a solution, you and the expense can be somewhat controlled.
For instance, you will be required to pay for a Qualified Domestic Relations Order (QDRO), which is normally produced by a QDRO expert, if you are distributing pensions.