Engine source code was not found. In order to use a C++ template, you must have engine source code in Engine/Source

Try to install and enable this settings in Visual Studio installer: