Suppose a oil tank farm is incorrectly built, a tank breaks, and the oil gets into the nearby river, killing fish and preventing it from being used as drinking waster for 100 miles downstream for the next week.
Who gets to sue if the insurance company decides to not pay? How much does each lawsuit cost just in lawyer time? How long does it take to get through the legal system?
If the insurance company doesn't have the funds, what happens? This can easily happen because the company has every incentive to find the least expensive insurance company, or the company might be overstretched, like Lloyd's in the 1980s and 1990s with the asbestos, pollution and health hazard suits.
Or it can be more perverse, like an insurance company set up as a front, working with unsafe companies, and where a significant problem or payout simply triggers bankruptcy, and no remuneration.
If different companies have different rules, how easy will it be to switch insurance companies? Because that sounds like a great way to get lock-in. Can I bring my own building inspector in or do I need to depend on the insurance company inspector? Will the codes be public information?
Insurance companies are usually themselves insured. If they go bankrupt, e.g. a natural disaster or something unexpected happens, another insurance company has to cover it. This is possible because they insure multiple industries and geographic regions, so can take a few hits.
The details will need to be worked out, but I don't see why it would be anywhere near as complicated as working out the details of building codes. Regulations are complicated, we already accept that. This is just a way to significantly simplify it.
One of the results was a stricter and statewide building code instead of piecemeal codes. Successive hurricanes helped give evidence for the usefulness of the new code.
Another was state trust fund to ensure sufficient insurance capacity.
As a side note, I really wish more of these sorts of alternate regulations existed. They would be very useful fallbacks for when regulations become outdated or overly restrictive. Another concrete example of this is automobiles. Right now in the US, you can't bring a consumer car to market without extensive crash testing from the NHTSA and fuel economy tests from the EPA. These high fixed costs eliminate enthusiast and niche manufacturers. If the law said, "Any model that doesn't pass these tests incurs a $10k (or 25% or whatever is onerous enough) tax on each vehicle.", it would allow for new manufacturers to enter the market with far less capital.
Historical note: Has this ever happened anywhere?
After a few decades, the once great regulations are often way out of date.