Does the system setup (F2 at powerup) see the drive at all?  If not, power off, unplug the system, disconnect the battery from the system board and hold the power button for 30 sec.  Remove and reinstall the drive. Then re-check.  If it's still not seen, it's toast (unfortunately, one downside of SSDs is that they can and do fail suddenly and without warning, whereas hard drives most often give advance notice of impending failure). If the drive IS seen in setup, you can try moving it with no risk to either system.  If it works in the other system, chances are there's an issue with the mainboard in system 1 -- if it doesn't, it confirms the drive failure.    
Upon booting up this morning, I got the error code 2000-0161 No NVMe Drive detected. Laptop just went out of warranty July 2021.  Passes the pre-boot system performance test with no hard drive issues. Startup Repair states it couldn't repair my PC....I've watched many utube videos about checking the date/time, switching back and forth to Legacy, etc etc.  Nothing works. Back to square one.  I would just like to get my data off the hard drive if nothing else. I do happen to have a backup laptop ( EXACT same model ) so I'm thinking of moving the hard drive to that laptop to see if I can access data but I'm not techy - wondering if I could damage that laptop? Any suggestions?
Error code 2000-0161 BUT XPS passes pre-boot system performance check