There are some rights it should not be possible to negotiate away.
For example, a contract in which I forfeit my right to life or ownership of my own body would be considered invalid.
The same should be true of a contract in which I forfeit my right to sue. Half the point of the courts is to serve as a final arbiter when a contract is insufficient.