mudgudgeon
Resident galah
Why not replace the stud with a bolt and the cone washers?
A bolt head is typically too large and will protrude post the edge of the hub preventing the wheel from fitting over the hub.
The nuts used have a thinner wall than most.
I have used socket head cap screws previously to get more thread engagement in the hub. They have a small diameter head, so no clearance issues.
Getting the correct thread may be a challenge depending on where you are