If I were running the company, I'd just masquerade the demotion as a promotion:
1. Promote from principal engineer to technical manager
2. 2 years later -> this person sucks at management but they were a great engineer
3. "Promote" from technical manager -> principal engineer level 2