At the scale these things work out there’s no way to really “have a backup” not in the true sense that backup means. If you build a factory you use a factory - otherwise you’re wasting masses of money.
What you should do is diversify and leave the option to quickly (relative terms here, still many months) ramp up production in other factories should one have an issue.
Which is what most companies do. Manufacture rewards scale though so the diversification comes with its own set of problems (usually in logistics and stock management).
So they do think about it for sure but due to the physical nature of things it’s not a case of “have a backup and decide to start going one day at a new location.”