yes, eve online solved "griefing" by redefining it as "pvp". in all seriousness, I think their solution is pretty good. it's never 100% safe to undock, but it's prohibitively expensive to repeatedly kill a specific pve player in high-sec.
I used to be a pretty hardcore PvPer when I was young then got tired of griefing, being griefed, fixing and getting better gear, spending hours to craft stuff that would be gone in minutes.
Basically, wasting a ton of time.
That may be fine when you're in school, but not when you have a job and a life.
EVE was an outlier probably because they could afford to be with what looked like zero competition in their heyday. Now they sold the game to Pearl Abyss, must have been doing pretty poorly.