Ms. Carter is part of a wave of executives and engineers leaving cushy jobs at Google, Amazon, Apple and other large tech companies — some of which pay millions of dollars in annual compensation — to chase what they see as a once-in-a-generation opportunity.