M.2 SATA SSD errors in Linux

I’m trying to use Linux on my Chuwi MiniBook, but dmesg is full of DMA and NCQ errors. The drive also gets slower and slower (from 6.0Gbps to 1.5Gbps and even slower) the more errors I get.

What causes this? A BIOS problem? Firmware problem? Linux kernel problem? Hardware problem?

Has anyone managed to solve this issue?