Physics is a rule set that never changes, hence engineering standards can be built around it.
Qualitative systems like programming languages have an immeasurable amount of variation and complexity and are extremely difficult to monitor and enforce standards around.
What’s required is a better stack that is less error prone. If programmers can’t make the mistakes in the first place, they won’t happen.
The basic rules of logic which CPUs use and much easier than physics, and have been fixed liner (see quantum mechanics and relativity). I am ignoring CPU bugs here, but then again I wouldn't expect a law to blame programmers for those, same way a builder wouldn't be blamed for defect concrete they couldn't have known about.
Also, new building materials are created all the time, tested, then allowed if they meet fixed safety standards.
Qualitative systems like programming languages have an immeasurable amount of variation and complexity and are extremely difficult to monitor and enforce standards around.
What’s required is a better stack that is less error prone. If programmers can’t make the mistakes in the first place, they won’t happen.