Hi,
Two things
Add a larger pagefile.sys to make up for only 8GB memory - Epic Developer Community Forums (unrealengine.com)
Click in Visual Studio 2022 update install “More…” box the “Repair” function then the “Update” box for the latest version
Try my version with instructions at
jimshalo10/UnrealEngine-5 at Luoshuangs-GPULightmass-5.3 (github.com)