Thanks for the help man. Sorry it wasn't the answer you were hoping for, overcharge. I have to agree, this definitely sounds like a drive problem UNLESS when you try to use the SATA M.2 drive you have similar problems, and then it's got to be a board or power supply issue. There is ALWAYS an outside chance of a CPU issue, but unless you've had that out and back in recently, we can rule that out.
I was hoping to hear what happened after you put in your old nvme. My son recently turned off the ups while my main pc was running. Cause havoc. On cold boot the uefi sees my nvme, ssd and hdd. The boot manager is missing. When I choose nvme with Windows on it, the pc restarts and the nvme disappears. Can’t find it using elevated cmd prompt, can’t find it in uefi, can’t find it using usb windows installation or repair. Reseated, pulled power, everything. Only shows up on initial cold boot but, in uefi if I try to secure erase ssd option, it fails. I installed windows on the existing ssd just fine but the nvme is bricked i guess. I tried it in both m.2 slots on the asrock X370 taichi mobo. The nvme is Samsung 960 evo 1Tb. I started a support ticket with asrock and Samsung yesterday. Awaiting a response. They’re both still under warranty
You need to do your installation with NO other drives attached. ONLY the target drive. Then do a CLEAN install of Windows, as outlined in my guide which explains that you need to delete ALL existing partitions on the target drive. Doing so will cause a new boot management partition to be created. It's very doubtful that a power loss would cause any permanent damage to your NVME drive. I would be astronomically surprised if it was "bricked" and if it was there would have to be more to the story because a simple loss of power would not cause that.
Windows 10 Clean install tutorial This tutorial is intended to help you, step by step, to perform a clean install of Windows version 10, build 1709 or newer but can be equally applied to earlier installer versions which may simply lack some of the Cortana assisted settings screens but should...
If you need additional help, then please start your own thread (And PM me with the link, if you wish) so that we can help you specifically in a thread designated to YOUR problem, rather than trying to do so in a thread intended to help somebody else. Too confusing and bad form in any case.