​Factories that invested in anticipation of a boom in orders are saddled with debt and unsold inventory.