Earlier quoted context omitted.
The patent clerk guy was almost done with his PhD when he became a patent clerk. Not quite comparable.
Are we talking about Einstein? If I remember correctly, according to Walter Isaacson, Einstein managed to get so many good papers out not despite, but because he was not working for an university. It gave him more freedom to reject existing ideas. Also the years I can find on Wikipedia do not seem to support your claim. He started as a clerk in 1903, and had his miracle year and submitted his PhD dissertation in 1905…
He began his work on the PhD prior to 1903.