I always recommend Charity Majors’ concept of the 'Engineer-Manager Pendulum' to anyone thinking about this. You don't have to say goodbye to tech forever. Spending a few years as an EM, then swinging back to being an Individual Contributor (IC) actually makes you a much stronger leader and developer on both ends.