The sweeping layoffs mark another major contraction under CEO Andy Jassy, who has slashed tens of thousands of roles since taking over in 2021.