Warner Bros already has experience for when a lead in a franchise has major reputation issues - Fantastic Beasts (which coincidentally, also includes Ezra).
They can ignore it (FB 2), or just recast and have the audience deal with it (FB 3). They can do the same thing here with the Flash.