You seem to be asserting a few contradictory things:
1. Taiwan can only be defended with US troops on the ground
2. Ukraine has no US troops on the ground and is being successfully defended
3. The US would only put troops on the ground to protect valuable things like TSMC fabs
4. (by implication) if China attacks Taiwan and destroys TSMC fabs tomorrow, the US would have no incentive to defend Taiwan because the fabs are gone
I don't see it. Ukraine looks likely to survive as a country without US troops on the ground. Ukraine, as you note, has no fabs or similarly valuable assets. Why can't those exact same conditions play out in Taiwan, which is also much much much harder to invade with ground troops than Ukraine was?