Palantir confirmed that it’s cutting about 2% of its workforce, as layoffs continue to hit the tech industry.