The modern ships they have been building are gigantic. They don’t need many of those to replace a fleet of older ships.
$140 million is not massive debt.
I don't disagree that they can build these ships. But the main reason is the massive Chinese defense budget (probably around $200b), not the existence of these yards.