I still don't think China would risk attacking Taiwan. If they do, TSMC (the silicon chip manufacturers) would almost certainly have plans in place to destroy everything, and that would cause a huge amount of damage to the Chinese economy. I think I've read somewhere that TSMC already have plans to destroy the foundries so that they would be beyond Chinese use, so what would China gain? Xi is not Putin, he understands perfectly that they can wait another 100, 200 or more years to reunify Taiwan, and he doesn't need to take Taiwan to have his place in Chinese history.
There's also no guarantee that any attack will succeed, because although Taiwan has been doing a less-than-stellar job with defence, it's still very difficult to take an island if that island has all their defences aimed squarely at you.
There's also another issue: some analysts think that China might implode sooner rather than later, as they have some serious structural problems that they can't seem to address. They have lousy relations with most of their neighbours, there are some who might well help out Taiwan (Vietnam, India, Japan, South Korea), and there's also the US and their allies who might want to step in as well, like the Philippines. Then there's the naval issue: China is unbelievably vulnerable to naval blockade, and their navy has no hope in hell against any competent navy as it's simply not designed for anything more than coastal operations.
Then you've got the debt issue, which has been caused not by the government, but by cities and provinces taking out massive amounts of debt to pay for huge infrastructure projects, and while their high speed railways are well used, a lot of the other projects have been nothing short of a disaster. Then there's the looming demographic disaster: they have a huge population over 50 and nowhere near enough young people to pay for them.
The more likely scenario, IMO, is that a weakened and thoroughly humiliated Russia has another revolution, and China uses it as an excuse to annex Siberia.