I think the issue is that the sum() call is running a kernel that uses AVX2 instructions, but the CPU doesn’t support AVX2 instructions (only AVX).
There are two likely causes:

The CPU capability detection code isn’t working on Windows (or maybe the VM?) and incorrectly thinks the CPU supports AVX2 instructions
The library linking behaves differently on Windows and is causing the AVX2 kernel to be run when the AVX kernel is called.