If China has a seriously good-enough, home-made processor and storage chips, it could gain from a war with Taiwan. If this would mean to cripple the EU's and possibly also US's and to a lesser degree it's own economy through the absence of chips on the market, having that good-enough, home-made processor would be what keeps China afloat, while the rest drowns. And if it could get Taiwan and its chip manufacturing capabilities, it would have won the war with even bigger gains.
At least the EU has no way to survive without Taiwan selling them chips.