Tesla has faced mounting challenges this year, with global sales declining and investor confidence wavering.