The layoffs represent about 4% of Rivian's workforce. The company has made two other smaller cuts since June.