Japan's second largest carmaker had already been struggling to cut costs and return to profitability.