A bag of fine flour tossed into the clean rooms, and using a taser on all the electronics and control boards makes entire fabs more or less worthless. They probably have multiple doomsday options that wipe out any utility the chip plants might have. I'd probably also have a technology and documentation package ready to be shipped to the US by a secret lawyer - if Taiwan gets taken, the fabs get destroyed, and the US gets the technology.
They're not weak or stupid, the level of retaliation and sabotage in store against any attempt by China to take over would go down in history as some of the most ruthless and savage of all time.
Xi is just beating his chest. China is currently simmering - protests, civil unrest, and dissidence in general is up significantly over the last year or so, and they need to make bold public speeches to look powerful and in control. I don't think there's any risk of widespread public revolt, but they play these games and push propaganda because they have to, not because it makes sense.
China's been threatening to "unify" Taiwan for decades, more or less like clockwork. They missed their best opportunity to actually do it during Biden and covid - the US would likely have just let it happen at that point. With new US fabs popping up, we may reach parity with Taiwan chipmaking capabilities within a decade or less, and that makes the utility of Taiwan even less.
Urban resistance fighters and guerilla tactics from a hostile population makes taking over cities and towns like that more or less completely impossible. Any attempt by China to take Taiwan would end up looking like the US trying to "liberate" Iraq, with constant PR hits, human rights violations, way more money than they want to spend, or risking inciting major unrest if they just wipe out the Taiwanese population like monsters.
I don't think there's any real upside to actually taking Taiwan, it's more useful as a perennial jingoistic narrative than anything else at this point.