After a brief slowdown in mass layoffs, tech companies have again resorted to job cuts to rein in costs, even as advancements in generative artificial intelligence continue to disrupt business.