We just have to hope that the Ukraine conflict has convinced China not to try to pull it off. We certainly would not be able to find economic sanctions that could possibly work if they did.
The only thing that can end up in Chinese hands is the rubble of what used to be TSMC facilities.
Ukraine has shown that those can evaporate in mere days.
In Ukraine, the territory is what Russia wants (minerals, crops) but in Taiwan it's the "human capital" that's desirable, and the latter isn't so susceptible to invasion.
It's likely that Russia, with ten times the armed forces of Ukraine, will devastate Ukraine, unfortunately. But China is more likely to hold off devastating Taiwan.
b) Intel spun up their Foundry Services division specifically to manufacture chips for Apple, Amazon, Microsoft etc.