Why would China invade?
The first rule in combat is no two theaters of conflict are the same. Taiwan and Ukraine are about as different as you will find. Furthermore, the sheer brutality of the Chinese will leave no room to resist and survive.
You don’t invade an island you choke it off.