I feel similarly. For me I know it is because of my rejection sensitive dysphoria. The fear of someone seeing and judging something personal of mine is quite uncomfortable. I don't have the same issue with code I write professionally.
> I don't have the same issue with code I write professionally.
Why not?
Code I write professionally is polished before I send it for review. Code/dotfiles I write for myself are full of all kinds of heinous hacks.
It is less personal. I am writing code in the same style as the rest of the code base. Its more focused on correctness than my preferences. If someone critiques code in a PR I don't take it personally as it is usually in good faith.