Visual Studio 2017 is required to successfully complete the installation. If you're installing the HoloLens (1st gen) emulator with Visual Studio 2022 you need to deselect the VS templates and install them from the Visual Studio Marketplace.