Tesla has faced criticism and investigations over its self-driving technology after several crashes, including fatal ones.