There are rules and precedent in case law regarding pre nups.
The main issue is that there can have been no coercion or duress in getting the other party to sign.
Most lawyers will tell you a properly done pre nup is solid.
A sharp lawyer can make one bullet proof.