When then Communists took over China, the there was a huge exodus of money to Taiwan. Most of the industrial growth in China and the factories have been financed and owned by those from Taiwan. People of Taiwan have been allowed to travel rather freely in mainland China to visit and manage their investments. Another large source of China's industrialization has been from money in Hong Kong.
When China started to crack down on Hong Kong and the covid shutdown, a number of Hong Kong owned factories, started to be dismantled and shipped to places like Thailand, Vietnam, etc. There is a real fear in parts of China that this will continue and expand with Taiwan owned industries.
China has a middle and lower class that is use to a rapidly increasing standard of living fueled in large part by the industrialization. If that industrialization and rising standard of living stops, there is likely to be incredible political pressure on the CCP and near civil war.
Invading Taiwan would just speed up the process. The CCP wants to do it, but they also need to weigh the internal economic consequences.
TSMC is building a $12 billion chip plant in Arizona.