For context, as a layman, when I Googled this a while ago, the understanding I came away with was that while there can be some benefit to form an LLC in this regard, in reality it's Very Hard (TM) for a 1-person company to truly avoid the risk of the corporate veil getting pierced (regardless of the kind—LLC or whatever). The way I understood it, the entity suing you will look for any and all excuses in your records to try to pierce the corporate veil—and these can include anything from "mixed personal & corporate funds" to "did not properly keep detailed minutes of corporate actions", to other things I'm not aware of. And when there's only 1 person in the company, it's generally more difficult to abide by all the formalities in practice and keep proper documentation of them and convince others that you are indeed keeping doing things properly, whereas with 2+ people, it's much easier, and as a result of that fact (IIRC) judges are apparently much less likely to pierce the corporate veil when there are multiple people in a company.
But as I mentioned, I'm a total layman here, and I would love more info from someone who actually has any legal experience with this kind of concern.