Solution:
1st: use this version/link to download bluestacks: https://cdn3.bluestacks.com/downloads/windows/bgp64/4.280.4.4002/c0e5b72daaec1a9e063fa25504c24753/x64/BlueStacks-Installer_4.280.4.4002_amd64_native.exe
(And don’t use the latest Bluestacks 5, it’s very buggy currently. And not good for automation.)
After installing, open Bluestacks and goto settings, select preferences and scroll to botton enable the below encirled box and Click Save.
And put 127.0.0.1:5555 for udid in NecroMancer IG settings
After submitting you’ll receive the download link