Amazon laid off more than 27,000 in 2022 and 2023 and has continued making smaller cuts.