Are you using the Arduino IDE or a different IDE ?
Do you have any other IDE's installed ?
When was the last time you had a computer clean up ?
Do you have any other security software besides windows defender ? ( Thats not much as security goes)
Are you sketches stored elsewhere other than the local drive's ? (network and cloud type drives can be slow or awkward)