Meta told employees it plans to lay off 10% of staff in May, citing efficiency and rising costs. Staff will get severance and extended benefits.