Amazon engineers have voiced concerns over the company's massive AI infrastructure investments alongside significant layoffs.