Struggling Battery Factory Is Behind GM’s EV Problems

General Motors Co. is racing to fix problems in its electric vehicle business to make good on promises CEO Mary Barra made five years ago. It still has a long way to go.