Guy Rosen, Meta Platforms Inc.’s chief information security officer who previously oversaw the company’s election integrity work, is departing in the coming months.