Strange errors related to my samsung 960 pro

So my pc began failing last week giving me ext4-fs and IO errors. I have a Samsung 960 pro 512GB. I searched around and found that some people got these errors, tried the workarounds and it won’t work. If i boot windows 10 and use Crystalmark, it says the ssd is perfectly fine. I don’t use windows very much but didn’t observe any crashes while using it. Samsung Magician says everything is fine and latest firmware is installed. I’m using linux mint 18.3