If China and the United States are in a full-on shooting war, the last thing I'm going to be worried about is what country 5nm chip fabs are based in. It's a complete and utter failure state of civilization, and is one hot-headed decision away from going nuclear.
If chip fabs are at the top list of your worries, your perspective of war is probably overly informed by being on the side that undertakes imperial adventures against people who can't shoot back. Direct war against an actual superpower is horrific.