As Elon Musk’s company struggles to iron out Model 3 production issues, a consultancy says Tesla is about to get overtaken.