You are not the first person to experience this, it can be quite common, some memory kits are made with settings specifically for the X99 platform and some for the Z-170 platform, and sometimes the motherboard doesn't detect and enter the correct XMP settings
Try instead to enter the speed, primary timings and voltage of the XMP settings manually, you may have to increase VCSA and VCIO voltages a tiny bit to get your modules stable
Please enter all your hardware specs, although probably not needed to troubleshoot this issue, it generally helps others helping you
Les