Competition caught up with Tesla's lead while Elon was too busy with his many side projects while somehow also micro-managing the company to death (e.g. Cybertruck).
He should have focused on scaling up manufacturing and driving the price per car down. But no, he had to chase the self-driving pipedream, launch a ridiculous pickup truck, and wreck the "genius" person he had built to replace with an alt-right one.