There's an issue in the Windows 10 2004 (20H1) update that could potentially damage SSDs. Microsoft is aware of this problem, and a fix is currently being tested and will be released soon. However, there's a temporary workaround.
This error occurs in the integrated defragmentation tool on Windows (Defragment and Optimize Drives) - a feature that has been around on Windows for a long time, originally designed for traditional HDDs. However, with the prevalence of SSDs today, Microsoft has also improved it to optimize SSDs. The bug in the Windows 10 2004 update causes this tool to excessively 'defragment' SSDs, reducing their lifespan.
Unlike HDDs, SSDs lack spinning disks and don't experience fragmentation as data is stored in memory chips with electronic access. Instead of defragmentation, SSDs use the TRIM command to clean up and organize data blocks, marking deleted blocks for removal and available ones for data writing. Thanks to TRIM, the operating system knows precisely which data to move or delete. The Windows defragmentation tool issues a reTRIM command to optimize SSDs. However, a bug in this tool incorrectly identifies the last time a drive was optimized. This results in constant notifications about the drive needing optimization, impacting the SSD lifespan by causing more write/delete cycles with every software launch and automatic optimization during system restarts.
Currently, Microsoft is testing a patch and releasing it to Insider users. However, there's a way to disable the automatic defragmentation feature in the Defragmentation and Optimize Drives tool. Open the tool, select the SSD drive > Change settings > uncheck Run on schedule > OK.Source: TechSpot