in your AV exclude all the directories where Nim installs something (is there a list?). Also exclude the directories where you keep your projects an build.
(it can be worse, currently MS Defender flags about 10% of FireFox's chache2 as a trojan.... :( )
