Tesla has had a rough 2024, with its shares down 34% year to date. But the electric-vehicle space in general…