Precisely. The collapse of their real estate markets (if you can call them that) is just one of the many financial problems they're facing.China has significant internal troubles with mortgage debt repayments and a slowing economy.
It suits XI to manufacture an external threat and enemy to take people's minds off their own pain.
Foreign investment has declined dramatically while foreign industries are closing shop and moving out while they can. At the same time their chip industry is in deep trouble. Industry exec's are under investigation and/or arrested. The Chinese government shoveled out billions upon billions RMB to bootstrap the industry and have virtually nothing to show for it.