Tesla will stop building the truck at its Texas factory around the middle of 2027 to free up space for its Cybercab robotaxi, Musk said.