That is really strange. I think there's something wrong in the config files. Try `nim c --os:windows --cpu:amd64 --cc:gcc -d:gcc.exe='x86_64-w64-mingw32-gcc'` (without `-d:mingw`).
You can also try <https://github.com/enthus1ast/zigcc> if Mingw can't be used.