The greatest and in some sense heartbreaking admission of error I know of, is Frege's letter to Bertrand Russell:
https://sites.tufts.edu/histmath/files/2015/11/Frege-Letter-...
Russell himself says "As I think about acts of integrity and grace, there is nothing to compare with Frege's dedication for truth."