We’ve never actually tested/used Windows 8, so all I can suggest is to:
Install the most recent version of Visual Studio that supports Win 8.1 (I thinkVS 2019 does, but no guarantees). As long as sufficient support for C++17 is available, it may well work with 11.1, but again, no guarantees, especially on 32bit systems.
v10.5.1 is the last for which Windows 7 binaries were built, so if 11.1 does not work, you could try that, and then work forward to find out if any more recent version also works. Once again, no guarantees on functionality.