There’s a point in every company’s trajectory where you should decide if you’re aiding in the company’s success or hindering it, and I believe this is doubly true for founders. In my personal experience, almost every startup I’ve worked in a founder was pushed out by the board or by a cofounder, voluntarily stepped down, or marginalized, and often for the better. The one case it didn’t happen, it should have.
Some companies do great with founders still in charge. (Stripe, AirBnB). Others realized their full potential after the founders stepped away (Google comes to mind). Either way, a founder should know when their time is up and think about what’s best for the organization.