Automakers struggle to balance production with demand