This is why regulation is needed and competition on the lowest level of infrastructure a bad idea.
In Germany, we have a legal mandate (per §36 EnWG, https://www.gesetze-im-internet.de/enwg_2005/__36.html) for the dominant local utility to provide the core gas and electricity network upon which the customer can choose any utility to provide gas and electricity (with this utility then paying a set rate for using the network to the local utility). Additionally, §11 EnWG (https://www.gesetze-im-internet.de/enwg_2005/__11.html) forces all network-operating utilities to keep their network operation "safe, reliable and free of discrimination" - and the authority BNetzA has the legal power to actually enforce this.
Events like the shoddy maintenance that led to a number of wild fires in California or the lack of winterization that led to the Texas debacles in 2011 and 2021 simply would not happen here.