Hello
The main issue is that the defragmentation of the system disk occurred frequently, right?
Defragmentation is the process of moving portions of files around on a disk to defragment files, that is, the process of moving file clusters on a disk to make them contiguous.
If it occurred frequently, there may be software writing to the disk and deleting files frequently. As a result, the disk got many small cluster and need a defragmentation.
Defragmenting Files - Win32 apps | Microsoft Learn
There is disk resocvey tool could be used to check the deleted files (just goole it). This tool may be useful to help verify whether there were largea amount of files deleted frequently