For Northvolt AB, the Swedish startup that became a poster child for Europe’s electric-driving future, the route to collapse started in June when BMW AG canceled a multi-billion order.