I know a guy who won $1 million plus in a state lottery. Fortunately, his family convinced him to do exactly as you suggested. He met with a major company financial advisor, and the money went into a rather conservative low-cost mutual fund.
After winning, many of his “friends” from the old days contacted him. “Congratulations on your win, pal! By the way, can you help me with my next car payment?”
Such requests were all politely declined.
I have no friends, so I know they’d be lying.
In some states like MA you have to claim the ticket under your legal name. However, in states like NH the big winners typically create a BLIND TRUST. Then the trust claims the ticket and it is difficult to find out who the actual winner is.
This happened here about ten years ago. The winner signed the back of the Powerball ticket. Then after speaking to an attorney realized by doing so their name would become public.
The attorney filed a suit to request and a judge ruled in their favor. Eventually the State Lottery commission let the Trust claim the prize and kept the trust holder secret. Of course, it had to happen in a timely manner. You have one year to claim the prize or you lose it.