The company said it is recalling nearly 300,000 vehicles because they could stall because of a software issue.