Don’t invest so much in being right you can no longer afford to be wrong.
Convictions, too, are about trade-offs.
— Benjamin Boyce
I think that is a stronger version of this one, which I think is a lot older:
Don’t cling to a mistake just because you spent a lot of time making it.