Tesla VP of Finance Sendil Palani has stepped down after 17 years at the EV maker, prompting Elon Musk to thank him for his “epic contribution”.