Saw this on hackernews some time ago about Golang devs facing false anti-virus flags: https://gopacker.dev/docs/
Seems like a similar approach could work for Nim Windows devs. I haven't looked but I'd bet there are obfuscates for C/C++ which would achieve similar results. I don't ship stuff on windows myself, but maybe it could help others.
If you are going to turn your code in to bullshit then the answer is buying a code signing certificate.
These kinds of destructive operations are the same thing done by exploit kits such as Veil https://github.com/Veil-Framework/Veil to bypass heuristical scans.