[NAME] I don't know if this will solve your problem but some SSDs work better if SATA operation in the BIOS is set to AHCI vs RAID. Dell usually defaults to RAID. So try your fresh install again with the AHCI setting. 
I have an XPS 8930 with a 2TB NVMe SSD that I have been trying to upgrade to a 4TB NVME. I have been attempting this for almost 1 month now. Sorting through a mountain of forums, communities, several versions of cloning software and tech support but still have yet to solve this problem. Along the way there have been many suggestions to perform a clean install of windows. So I just tried to do a fresh install of Windows 11 by inserting the brand new NVME SSD that has been initialized and using a Windows 11 bootable media usb,  and guess what, the problem still exists.  Here is the problem. I keep getting a BSOD Stop Code: Kernel_Security_Check_Failure upon start up. I have not found anything that lets me get by this.  I'm by no means a tech geek but not incompetent either. I'm sure I may be missing something simple that needs to be changed in the BIOS? This is driving me insane. My warranty has expired, and dell wants to charge me for the solution.  Is there a procedure anywhere that defines step by step how to correctly perform upgrading to a larger NVMe drive? Changes that need to be made in the BIOS to prevent the Kernel Security Check Failure? Thanks in advance for your help. TAZ
XPS 8930, 4TB NVMe upgrade, BSOD Stop Code