How layoffs, funding challenges hurt tech sector in 2022