A lot of thing, China's economy and the country itself, might be numbered if they decide to invade Taiwan.
This isn't like Ukraine where there was an implicit agreement that nobody will send actual troops into Ukraine to fight its war. If Taiwan is invaded, the US will send its own troops. And if the US is involved, the EU is likely involved too. China is big but not enough to challenge the US militarily. Not yet.
It would take an absolute madman to make China go to war just for Taiwan.