>>user59+Zl
They're called severability clauses. Courts frequently uphold them independently of finding other unenforceable or invalid clauses. Any contract written by a lawyer worth their salt has one and it's usually based on wording that has been tested in a court.
I am not a lawyer, this isn't legal advice.