If you're having that issue, go into Windows Settings App (Windows+I), select "Update & Security", select "Windows Security" on the left, and then select "Virus & threat protection". You should turn off Real-time protection in the window that opens.
Make sure to turn it back on once you're done!