How to deal with Sansung SSD NVME error on Ubuntu 20.04.2?

Had a similar issue with a NVMe Intel, model SSDPEKNW512G8, it seems due to the NVMe inner power management which does not work well with the current kernel (OS: Kubuntu, kernel 5.13.0-35).

The laptop went freezing once a day: typically letting it ON at night, I would find it freezed at the morning.

Then, I suppose when the memory filled up a bit, started to freeze four/five times in just a morning, as well while doing stuff.

No problems at all on MSWindows.

Solved adding to the grub command line:

nvme_core.default_ps_max_latency_us=0

Current uptime with no freezes: three days and counting.