> precautionary principle when we run nuclear, build dams
Yes. Dams in particular. You calculate for various failure modes and you design around mitigating the disaster if failure should occur. That's why dams are designed with emergency spillways. If there is a bunch of rain, gate failures, etc and you suddenly have more water than you know what to do with, you have the emergency spillway as a last resort. They exist to route water in high volume out of the resevoir, often in a sacrificial manner in an attempt to prevent the dam from failing. And if a dam would fail, it's preferably that it do so at the emergency spillway than elsewhere. So there is a certain amount of "in certain conditions failure can/will happen so this is how we design the system to fail as gracefully/least destructively as possible".
Nuclear has this as well. The plans for this are called "Severe Accident Mitigation Guidelines" or SAMGs with the general practice being called SAM (same abbreviation, just drop the G). Each nuclear site has them and they are generally framed as "this shouldn't go wrong but if it does". You can try to avoid those failure modes but they can always still potentially occur and the most you can do is just try to keep the damage from spreading to the best of your ability.