Unfortunately, I have similar experience with the EVO 870 4TB drives, with two failing consecutively. I used one as a backup drive but after a year started having issues. It was not clear to me then that it was the drive failing. I just saw intermittent device disconnection notifications on Windows but could not identify the cause. Then when I was upgrading to Windows 11, I noticed the 870 EVO kept disappearing/appearing on my Drives list. File transfers also kept getting interrupted or failing.
Incidentally I sent my system for repairs for other issues and the staff replaced the drive with another EVO 870 as it was identified as faulty. It's been less than a year since, and I wrote about 1 GB worth of data to the drive, but now it looks like it has issues too. Some files could not be moved nor opened. I ran Samsung Magician which said the drive was in "Good" health. The short scan ran fine, but the Smart tests kept failing/aborting with no recovery options. I tried firmware updates, but that also kept failing for the EVO. Did some Googling and it looks like the EVO 4TB has some bad batches.
I think my next replacement backup drive will be the Crucial MX500; rather not gamble on another EVO bad batch...