Error when generating Visual Studio project files (.sln)

I have Unreal Engine 4 4.17 and 4.18 installed and Visual Studio 2017 IDE versions. When I’m press a button to generate VS .sln files, it gives this error:

“Running C:/Program Files/Epic Games/UE_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/Users/NAME/Downloads/SimpleFPSTemplate-ue4.17/FPSGame.uproject” -game -rocket -progress -log=“C:\Users\NAME\Downloads\SimpleFPSTemplate-ue4.17/Saved/Logs/UnrealVersionSelector-2021.08.18-01.50.08.log”
UnrealBuildTool Exception: System.IO.DirectoryNotFoundException: ?? 㤠??? ??? ??? ??? “c:\users\NAME\downloads\simplefpstemplate-ue4.17\saved\logs\unrealversionselector-2021.08.18-01.50.08.log”.
? System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
? System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
? System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
? UnrealBuildTool.UnrealBuildTool.GuardedMain(String[] Arguments)
? UnrealBuildTool.UnrealBuildTool.Main(String[] Arguments)”

If I just try to run the project, I get this error:

“Missing FPSGame Modules
The following modules are missing or build with a different engine version:
UE4Editor-FPSGame.dll”

I tried to change the UE4 version from 4.17 to 4.18, and back. I have reinstalled both versions of the UE4 game engine. I have reinstalled IDE VS 2017 version. I checked the engine files for both versions. But it still gives an error. I ran VS 2017, EGLauncher, UE4 of both versions as administrator. I moved the project from downloads to a folder created by the UE4 engine - Unreal Projects. I tried to remove the space bar in Unreal Projects. I moved it to desktop, and Program files - no differens, i still get the same errors.

It’s a text from log in saved/logs folder:

"Log file open, 08/17/21 18:52:03

LogWindows: Failed to load ‘aqProf.dll’ (GetLastError=126)

LogWindows: File ‘aqProf.dll’ does not exist

LogWindows: Failed to load ‘VSPerf140.dll’ (GetLastError=126)

LogWindows: File ‘VSPerf140.dll’ does not exist

LogWindows: Failed to load ‘VtuneApi.dll’ (GetLastError=126)

LogWindows: File ‘VtuneApi.dll’ does not exist

LogWindows: Failed to load ‘VtuneApi32e.dll’ (GetLastError=126)

LogWindows: File ‘VtuneApi32e.dll’ does not exist

LogInit: Display: Running engine for game: FPSGame

LogPlatformFile: Not using cached read wrapper

LogInit: Display: RandInit(-1859720771) SRandInit(-1859720770).

LogTaskGraph: Started task graph with 5 named threads and 20 total threads with 3 sets of task threads.

LogStats: Stats thread started at 0.353053

LogD3D11RHI: Aftermath initialized

LogPluginManager: Mounting plugin Paper2D

LogPluginManager: Mounting plugin LightPropagationVolume

LogPluginManager: Mounting plugin CodeLiteSourceCodeAccess

LogPluginManager: Mounting plugin GitSourceControl

LogPluginManager: Mounting plugin KDevelopSourceCodeAccess

LogPluginManager: Mounting plugin NullSourceCodeAccess

LogPluginManager: Mounting plugin PerforceSourceControl

LogPluginManager: Mounting plugin SubversionSourceControl

LogPluginManager: Mounting plugin UObjectPlugin

LogPluginManager: Mounting plugin VisualStudioSourceCodeAccess

LogPluginManager: Mounting plugin XCodeSourceCodeAccess

LogPluginManager: Mounting plugin AssetManagerEditor

LogPluginManager: Mounting plugin AudioCapture

LogPluginManager: Mounting plugin FacialAnimation

LogPluginManager: Mounting plugin GameplayTagsEditor

LogPluginManager: Mounting plugin MobileLauncherProfileWizard

LogPluginManager: Mounting plugin PluginBrowser

LogPluginManager: Mounting plugin SpeedTreeImporter

LogPluginManager: Mounting plugin AlembicImporter

LogPluginManager: Mounting plugin CharacterAI

LogPluginManager: Mounting plugin HTML5Networking

LogPluginManager: Mounting plugin AndroidMedia

LogPluginManager: Mounting plugin AvfMedia

LogPluginManager: Mounting plugin MediaPlayerEditor

LogPluginManager: Mounting plugin WmfMedia

LogPluginManager: Mounting plugin TcpMessaging

LogPluginManager: Mounting plugin UdpMessaging

LogPluginManager: Mounting plugin LevelSequenceEditor

LogPluginManager: Mounting plugin MatineeToLevelSequence

LogPluginManager: Mounting plugin OnlineSubsystemGooglePlay

LogPluginManager: Mounting plugin OnlineSubsystemIOS

LogPluginManager: Mounting plugin OnlineSubsystem

LogPluginManager: Mounting plugin OnlineSubsystemNull

LogPluginManager: Mounting plugin OnlineSubsystemUtils

LogPluginManager: Mounting plugin AndroidDeviceProfileSelector

LogPluginManager: Mounting plugin AndroidMoviePlayer

LogPluginManager: Mounting plugin AndroidPermission

LogPluginManager: Mounting plugin AppleMoviePlayer

LogPluginManager: Mounting plugin ArchVisCharacter

LogPluginManager: Mounting plugin CableComponent

LogPluginManager: Mounting plugin CustomMeshComponent

LogPluginManager: Mounting plugin ExampleDeviceProfileSelector

LogPluginManager: Mounting plugin GoogleCloudMessaging

LogPluginManager: Mounting plugin ImmediatePhysics

LogPluginManager: Mounting plugin IOSDeviceProfileSelector

LogPluginManager: Mounting plugin LinuxDeviceProfileSelector

LogPluginManager: Mounting plugin LocationServicesBPLibrary

LogPluginManager: Mounting plugin MobilePatchingUtils

LogPluginManager: Mounting plugin OculusVR

LogPluginManager: Mounting plugin PhysXVehicles

LogPluginManager: Mounting plugin ProceduralMeshComponent

LogPluginManager: Mounting plugin RuntimePhysXCooking

LogPluginManager: Mounting plugin SteamVR

LogPluginManager: Mounting plugin WindowsMoviePlayer

LogInit: Warning: Incompatible or missing module: UE4Editor-FPSGame.dll

LogExit: Preparing to exit.

LogModuleManager: Shutting down and abandoning module AnimationModifiers (36)

LogModuleManager: Shutting down and abandoning module PropertyEditor (35)

LogModuleManager: Shutting down and abandoning module AudioEditor (32)

LogModuleManager: Shutting down and abandoning module TextureCompressor (30)

LogModuleManager: Shutting down and abandoning module ShaderCore (28)

LogModuleManager: Shutting down and abandoning module Landscape (26)

LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (24)

LogModuleManager: Shutting down and abandoning module OpenGLDrv (22)

LogModuleManager: Shutting down and abandoning module D3D11RHI (20)

LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (18)

LogModuleManager: Shutting down and abandoning module Renderer (16)

LogModuleManager: Shutting down and abandoning module Engine (14)

LogModuleManager: Shutting down and abandoning module CoreUObject (12)

LogModuleManager: Shutting down and abandoning module NetworkFile (10)

LogModuleManager: Shutting down and abandoning module CookedIterativeFile (8)

LogModuleManager: Shutting down and abandoning module StreamingFile (6)

LogModuleManager: Shutting down and abandoning module SandboxFile (4)

LogModuleManager: Shutting down and abandoning module PakFile (2)

LogExit: Exiting.

Log file closed, 08/17/21 18:52:05"