CVT1107 and LNK1123 errors when building new C++ project

Hello,

When creating a new C++ project using the first person template the following two errors happen during the code generation phase:

CVTRES : fatal error CVT1107: ‘C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64\wininet.lib’ is corrupt

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

VS version used: Visual Studio Community 2019 version: 16.1.6.

I have tried rebuilding the solution from within Visual Studio but the same errors happen.
Could anybody please point out what might be wrong?

Thanks for help.

bump,
i got this error when my computer blue screened in the middle of building the solution another error that followed was the UE4Editor-Unrealed.dll is invalid or corrupt