An Indian unicorn admits it screwed up and is rebooting with layoffs