There isn’t much evidence that layoffs are being caused by AI taking people’s jobs.
For big tech, such as Amazon’s recent layoffs of 14,000 workers, the reason seems to be a combination of cutting headcount to balance increased spending on AI infrastructure and anticipation of (not realized) AI productivity gains.
https://www.fastcompany.com/91435192/chatgpt-llm-openai-jobs-amazon