Just saw this recently, it's quite old news by now, but there's a firmware issue affecting 2 TB(no or less reports on lower capacity versions of 980 pro) version of M.2 samsung 980 pro SSDs, that would, as i understand it, start marking some blocks bad and pulling replacement from spare section, and as soon as it goes above 32k errors it'll go read-only mode and firmware update at that point won't fix anything.
So i haven't tested it because i don't have these, but if you're on linux this may work for you https://www.cyberciti.biz/faq/upgrade-update-samsung-ssd-firmware/
otherwise on windows it's as simple as using samsung magician tool.
If your drive is manufactured in 2021 there's a good chance you're on affected 3B2QGXA7 version.
If you're on 4B2QGXA7 or 5B2QGXA7(latest) then no need to update.
So i haven't tested it because i don't have these, but if you're on linux this may work for you https://www.cyberciti.biz/faq/upgrade-update-samsung-ssd-firmware/
otherwise on windows it's as simple as using samsung magician tool.
If your drive is manufactured in 2021 there's a good chance you're on affected 3B2QGXA7 version.
If you're on 4B2QGXA7 or 5B2QGXA7(latest) then no need to update.
Samsung Issues Fix for Dying 980 Pro SSDs
Download the firmware fix ASAP if your 980 Pro is affected
www.tomshardware.com