The layoffs represent the first large-scale workforce reduction in the company’s 18-year history.