Among the companies laying off the largest numbers is Amazon Fresh, which plans to close six stores in the Philadelphia area.