There is a Peter Principle workaround.
All you have to do is know where your level of incompetence is and diligently work to avoid promotion to that level.
Over the decades I’ve known scores of excellent engineers who became crappy managers.
I’ve studiously avoided management...
Me too.................