Rivian is laying off hundreds of workers in its service and customer organization as the EV maker restructures teams to profitably scale its business.