I found that the Epic Games documentation for setting up Visual Studio for Unreal Engine is a bit outdated, it still says to install the Universal Windows Platform development workload but that no longer exists.
I was still running into this error after following the docs so I created an updated video solution for anyone that comes across this error. Hopefully this helps you!