Greetings,
What memory are you using? Can you provide the kit and specs please? What speed are you running it at and are you using Auto, XMP or manual settings? People are having many challenges with DDR4, z170 and memory timing at the moment.
Confirm all connections, reseat memory and add-on card(s). Check CPU socket for bent pins. I would suspect memory/BIOS settings if the systems runs normally after you remove/return power to the PSU between starts.