Mm that's ugly.
I was going to suggest drilling a hole in the stud and pounding an Allen wrench in the hole to hold the stud. That may be hard to drill through the end of the keyed nut, then a bigger hole in the nut so it will spin around the wrench.