One example of this in the Bay Area was the Ghost Ship Fire [1] where they were forced to live off the grid because of over regulation, and then dying in a fire that some of that regulation was trying to prevent.
It's a classic problem. Laws have enforcement costs and knock-on effects.