Tack weld 3 or 4 nuts together, not while on the stud. Offset them in their thread timing. This will allow only the bottom one to thread onto the stud, the next will “lock” the stud so you can then use a socket to turn the stud in. Afterwards, unwind the stud stack, install a correct washer and nut.
Simple. (I’d stack 3 nuts to insure sufficient leverage to turn the stud in.)