I've been having the same problem, and it's not Linux specific; this happens on both my Linux and Windows partitions. I've yet to find a clear cause and no amount of changes to power consumption or boot parameters seems to fix it. In my case, the unit is also the boot/OS drive for both.
I suspect it's something related to the NVME, since I did not have the problem with my 1TB unit, it only started after replacing it with a 4TB one. Both are WD, though I don't have the exact model on hand.
I'd love to hear back if you find a fix, because it's got me stumped.