Samsung's 860 and 870 SATA SSDs have been causing issues for a while on Linux and it has been determined that NCQ and queued Trim commands are to blame. The problem is especially bad on older AMD PCs.