The following helped me solve this problem: completely remove VS2022 and UE using the Revo Uninstaller Pro utility and clean the registry with it, reinstall VS2022 through the installer with configuration.
Attached the configuration: https://drive.google.com/file/d/1NlRh8jgPGe9Mpa9M03H5pn247AXCvnII/view?usp=sharing