Standard screw size for the MSI Z170A GAMING M5 is M.2.
Standard screw size for the MSI Z170A GAMING M5 is M.2.
Metric M2 2.5 to 3 mm in size. The threading is a bit unusual. The best immediate fix would be to secure the SSD with tape before installing it. Then, you can order a set of M.2 screws inline. If you have access to a professional tool shop, they can advise on the correct size and thread pitch. Standard screws might be fine but could damage the motherboard nut.