They are facing some Keynesian dilemma: because the rest of the world is importing less and they have almost no socialism, their people can't buy the stuff instead. If those corporations fail, the people will be poorer, if they distribute wealth, those corporations will be less competitive.
They have some political dilemma: people only accept the government because of economical growth, but they grew to a point where growth naturally slows down.
They have some financial and monetary stuff going on, but those are mostly non-problems. They have a bubble that is bursting too, that makes the other two problems larger.
All said, I wouldn't say they are in a knife edge.
The term is 内卷, or involution.
Automation is orthogonal to demand. If demand isn't there then it doesn't really matter if the factory is automated or not.
And yes, China is aware of some slowing demand (although their exports are still impressive.) You can see this playing out in a couple ways.
Firstly they dominate production in key "future" technologies. Solar and EVs spring to mind as examples, but there are others.
Secondly they are investing in infrastructure (and goodwill) outside of China. Africa has a billion consumers-in-waiting.
While the US retreats from Africa (killing USAid, indulging racist theories about South Africa, etc), promoting isolationism (America First), activly alienating people via tarrifs, what is China doing?
China is quietly filling the void. They are building roads, ports, airports and other infrastructure. They are improving supply lines (Temu is expanding in Africa at a huge rate.) They are building cultural bridges, learning and teaching two very different cultures to work more easily together. In essence developing future customers, not antagonizing them.
It will be interesting to look back in 10, 20 or 30 years to see which strategy delivers better rewards.