The main reason often cited for China’s downfall is demographic collapse.
They have too many old people and not enough young people.
It’s potentially possible that automation can solve this problem but China’s economy has relied on relatively cheap labour for growth and the shift from will be rather alarmingly sudden.