That sounds like blackmail or extortion, which is a criminal offense. Furthermore, matrimonial court proceedings in the Supreme Court family division are heard in private chambers, and judges take a very dim view of parties using threats to coerce settlements.
Tell your attorney immediately! They can write a formal warning letter to your spouse’s counsel or apply to the judge for an interim injunction restraining your spouse from disseminating private or confidential information.