

When I originally switched, I kept an ultra clean windows 2000 VM going for a solid decade. Any time I needed it, I could install stuff, do the work, and then blow away the crud that always builds up with Windows. I would suggest using the oldest version of Windows you can practically use, de-bloating it, and taking vm snapshots.
You could even firewall it using another VM or the host if you wanted. Put windows in jail, erase its memory, and cut it off from the outside world so it behaves, lol.
I ran into this as my IDE is also constantly touching temporary files to maintain its state. It wasn’t copilot though, it was one drive. So I moved my work files into a local-only location, and then periodically rsync to the synced folder, excluding .git and other folders that have no business on a synced folder.