Hello there,
One suggestion would be dig further for the cause as I guess SAM might not be the only trouble here.
You can use native windows tools for this.
Process Monitor is an advanced monitoring tool for Windows that shows real-time file
system, Registry and process/thread activity. You can get the tool from here
https://docs.microsoft.com/enus/sysinternals/downloads/procmon
System Monitor (Sysmon) is a Windows system service and device driver that, once installed on a system, remains resident across system reboots to monitor and log
system activity to the Windows event log.You can get the tool from here
https://docs.microsoft.com/enus/sysinternals/downloads/sysmon
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--