The trick is to find a company culture where admitting you were wrong is valued, and not used as leverage against you - even if only in a subtle way. The most toxic workplaces I've worked in were because no one ever admitted they were wrong because it was used against them.