Most important is that the nut has full thread cover. Don't overtighten as the threads are fine thread, thus clamps hard with less tightening force compared with coarse thread.
Be absolute certain that the sprocket is correctly hardened, a soft sprocket might destroy the drive gear splines irreparably as the sprocket will start to distort at the splines and loosen up the nut.
Even a hardened sprocket can loosen up the nut and then the sprocket wanders out on the thread. When that happens the sprocket will spin and destroy the edges of the splines and also destroy the fine thread on the gear.
Absolute make a security screw that secures the nut from falling off the threads. It might be difficult, almost impossible to cut threads in a hardened sprocket but one remedy is to drill through and spot weld at the backside, a threaded pin where a safety lip can be bolted to.
The way I did it with a folding washer was not sufficient even if the screwhead prevented the nut from unravel totally, I was lucky there. The sprocket wasn't hardened.
The ruined gear is from another sample where a hardened sprocket destroyed the gear irreparably. There is tremendous forces at the sprocket splines with the jolts, tug and vibrations from the chain. In addition to the security lip, use hard locktite as extra safety.