The software company C3.AI revealed dozens of layoffs at its Redwood City headquarters on Monday, just two days before a closely watched financial report.