Derek Andersen’s departure comes as the company undergoes layoffs and faces stagnant user growth ahead of the launch of its AR glasses.