I suspect they'd be in much worse shape if Taiwan were invaded.
First, they'd find themselves competing with current TSMC customers for the non-TSMC foundries.
And second, an invasion of Taiwan could lead to a full out war with China, which might mean the non-Taiwanese fabs have their production priorities overridden by the warring governments.