Every serious car manufacturer has a backup power source in case something happens (there can always be a bad storm or an accident)
The fact that one burning mast was enough to completely shut down the Tesla factory in Germany just shows how much of their success is just ignoring very realistic risks and then pointing fingers at someone else if stuff happens