Can't create C++/Basic Code project

After I click “Create Project” button a Visual Studio is launched but Unreal closes itself…
Video of a problem: https://streamable.com/zygy6

I have built UE4 (4.22.3) from source code (release branch) using VS 2017 and VS 2019 - no difference, the same behavior happens in both builds.

Any idea how to fix it?