Go to the folder: %AppData%\Unreal Engine\UnrealBuildTool
(copy paste and enter)
Delete the file BuildConfiguration.xml, this should reset the visual studio toolchain version.
Otherwise:
- delete the msvc 14.42
- or manually write the config like on this page