If this is a project inside a big, established company, it should be relatively easy to move horizontally to a separate project (perhaps no longer as lead engineer).
If it's a relatively small company, then it sounds like there's some issues with management and the board. Might be time to start interviewing at other places.