Unable to build new project | fatal error C1853

I got the following error while building a new project:

f:\Amazon\Lumberyard\\dev\Gems\ScriptCanvas\Code\Source\ScriptCanvasGem.cpp(13): fatal error C1853: ‘f:\Amazon\Lumberyard\\dev\BinTemp\win_x64_vs2017_profile\Gems\ScriptCanvas\Code\Source\precompiled.5963121.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
Build failed

Whole build log: lmbr_create.zip (12.5 KB)

I’ve deleted the BinTemp folder, copied the whole Gems folder from my notebook to my main PC and I’ve let it rewrite everything. When I tried to create new project it worked (I guess that this particular gem was corrupted or outdated?)