This also solves the error qemu-system-i386.exe: failed to initialize HAX: Invalid argument.
I had Android Emulator checked but not Intel x86 Intel Accelerator (HAXM installer). When I checked this option too, HAX initialized correctly. Error went away.