Being anonymous doesn't eliminate the risk of being targeted, at best it might reduce it but the protection is fragile. At worst being anonymous denies you access to a multitude of protections including the trust and respect of friends and the sympathy of the public. In some countries it may even meaningfully deny you to the protection of due process.
But trust and respect doesn't, or shouldn't, come if a developer/coder is doxxed or not. It should come from the work he/she has showed and done. Because Satoshi could be the Drug Dealer Paul Le Roux, but it will not matter because of his anonymity. Who the community truly respects is the man who dedicated his time in building Bitcoin.
Unless you carefully throw something over the wall and vanish it's essentially impossible to remain strongly anonymous: Everything you write leaks information about your identity. With the world population being less than 8 billion people, just 33 bits is technically enough to identify a person. If you suppose attackers that have the power to seize and search your home at gunpoint then they don't even have to be particularly sure who you are-- they just need to reduce the list of candidates to one small enough they can search without too much trouble, and protecting your anonymity against an attacker that has physical possession of your computers is probably not possible.
I believe just let each developer do what he/she wants to do. Satoshi did it best. He probably pretended to be an Englishman, logging in the forum not in his real time zone, building Bitcoin in Windows because he was probably a Unix/Linux user, and changing his coding style.
Instead, I think sane people just shouldn't participate: There is very little incentive to do so. Forget state attackers: you'll be aggressively attacked by the mentally ill, by crapcoin scammers and their bagholders who view you as an impediment to their dreams of riches and no one will stop them, you'll be exploited by "journalists" that would think nothing of ruining your life with some falsehoods just to gain a few pieces of click-stream silver. The community as a whole will do little to protect you, mostly just pat itself on the back saying honey badger don't care and developers were a liability anyways.
Although, a respected developer like you needs to protect your family too, especially from the State. It's too much risk in my opinion.
As I've learned first hand the vulnerability created by participating isn't eliminated completely by stopping. You can't change your mind later and go "gee, I don't really want to spend the few years I have left fending off scammers"-- once you've given someone a hook to go after you you're just stuck with it. Especially in the modern world, saturated by fractal bureaucracy-- the best way to stay safe is to be invisible to those who would do you harm: Institutions won't protect you and don't permit you to protect yourself against attacks with adequate force. The public is too mired in the drama of the week, whatever nonsense fake crisis the applicable media is shoving down their throat, to stand up and protect their own. And being masked isn't invisible, it may well increase your visibility.
People like to imagine specific attacks that will draw an overwhelming defense, visions of Bitcoiners protesting the state house or whatever. But attackers aren't limited to behaving 'honestly', they're not limited to attacking in ways they are sure to lose-- no, they'll attack in ways that won't draw a response if any exist and clearly such avenues do exist.
Ultimately, if it was too risky to participate relative to the rewards under your well known identity then you should reach almost the same conclusion assuming anonymity.
Bitcoin's prior lead developer has ended his involvement, specifically saying that he regretted ever participating because he's been awarded a pile of abuse including multiple lawsuits as a result. That should be a thermonuclear wake up call, but few seem to hear it over inane debate about jpegs.
That's why we in the community have the utmost respect for you and the Core Developers, and consider you and them, the rightful stewards of the network. Thank you ser.