NOTE: It is vital to use the same size and depth of nut as originally fitted to your hang glider.
Using the wrong nut courts disaster. So check the nut you remove carefully and make certain that you order the same size and thickness replacement.
The M8 Nyloc nut is not used in many locations on hang gliders. Generally the nut is only used at the top of upright bolt and cross tube leading edge junction.
Note M8 or 8mm is very nearly identical in diameter to 5/16" so you do need to check the colour of the nut insert. Metric nuts have blue nylon insert.