The key, I've found, is figuring out the role that maximizes your strengths, and converting your current role into that (gradually) or finding a company that has a position that matches.
For example, I loved a lot of aspects of being a PM (leading the team, breaking down complicated tasks/releases, designing great UX) but am an engineer at heart. So I worked with my PM to take over responsibilities that leveraged those skills, and then I used that experience to get a new role where I'm able to do those same things to a greater degree (at a company now that combines typical tech lead + PM responsibilities into one).
The key, I've found, is figuring out the role that maximizes your strengths, and converting your current role into that (gradually) or finding a company that has a position that matches.
For example, I loved a lot of aspects of being a PM (leading the team, breaking down complicated tasks/releases, designing great UX) but am an engineer at heart. So I worked with my PM to take over responsibilities that leveraged those skills, and then I used that experience to get a new role where I'm able to do those same things to a greater degree (at a company now that combines typical tech lead + PM responsibilities into one).