Elon Musk's company has struggled to maintain investor enthusiasm that greeted its stock market debut.