In my experience, they will only get rid of a really good performer if you become "more trouble than you're worth." And yes that was very hard to hear! I blame my pdoc not warning me of prozac side-effects.
So what if you are not management material. That is usually mutually exclusive with techie. Most companies have two different tracks nowadays, so you dont HAVE to go into management to advance.