Former Twitter founder apologizes for mass layoffs