Variable morality is a problem.
The solution is (imperfect as it often is, as BPA ex illustrates) effective regulation.
Effective regulation is synonymous with “making individual moral differences irrelevant.”
I think it's more illuminating to phrase the problem in terms of externalities.
Things need to be set up to ensure that the profit motive cannot lead to the following thinking: Rather than spending $100m on doing the project to a high safety standard, I'll spend $70m, introducing a mere 1% chance of catastrophic failure and hundreds of deaths.
1% is of course far too high a probability, especially if this line of thinking is being followed in hundreds of different projects, but the odds may look fine to the manager.
Without regulation, companies can be incentivised to take corner-cutting risks where they profit by the upside, and we all bear risk-of-death on the downside (failing aircraft, collapsing buildings, etc).
With regulation, companies are required to meet a certain bar. Reputational harm can also incentivise companies to invest in safety, but it's not enough; regulation is needed.
Also, of course, there are cases where regulation fails, and it’s never 100% successful. But the situations you mention are where people refused to adjust regulations as needed.
I’m curious to see examples where morality has prevented undesirable behavior on a large scale.
Once the regulation is set, it can easily be undermined. BPA was banned by regulation, so industry developed analogue chemicals with the same properties and began using them.
Certain aspects of concrete & steel are regulated, so unethical effort goes into subverting the idea of the law while following the letter. Or they start sourcing the steel from outside the jurisdiction of the regulation (eg radioactive material is disposed of in China by mixing with steel made for export https://www.seattletimes.com/nation-world/the-growing-global...)
Not trying to be disagreeable, it's just a thought that has been bothering me.