I am writing this here so that someone with proper knowledge could propose a permanent fix to this issue.
Do not use Microsoft Windows for mining. Explore other mining systems and choose whichever you like best. You can even use multiple systems on one computer. You can work on Windows and mine on another system.
Or use tweaks that block updates, but Microsoft is constantly struggling with this and updates come even to unlicensed operating systems.
Windows 10 OS will soon be left to have enough breathe very soon, windows 11 is here and if your PC doesn't meet requirements you won't be able to upgrade to W11, I heard your CPU have to be latest to use Windows 11, anyways I just find windows mining to be more easier probably because that's what I am used to from day one