try these steps to see if helps boot:
I purchased a new XPS 8940 with Windows 11 a few weeks ago with one SSD (512 MB).  I realized after I purchased this that I would need a drive for backups and purchased a 2TB HDD which I installed in the new computer.  Windows 11 didn't recognize it till I went into Disk Management and configured it but seems to be fine after that.  My BIOS is set to RAID for Hard Drives and S.M.A.R.T. is not enabled. I've read various places with both an SSD and HDD I should set the BIOS setting to AHCI instead of RAID.  I went into the BIOS and changed it to AHCI.  After doing so I get a boot error and Windows 11 won't start up.  I changed it back to RAID and it seems to be fine.  Am I OK leaving it in RAID? Why would I get a boot error?  Should I enable S.M.A.R.T. I've done all the updates for the BIOS and Windows 11.
XPS 8940, added HDD, change to AHCI