Elon Musk's electric car company is facing questions as the economy weakens and borrowing costs rise.