How do I resolve "Warning LNK4217: locally defined symbol [...] imported in function [...]"?

When I try to launch the game on my PC, I get about 500 linker errors like this (full log attached):

LogPlayLevel:Display: UnrealBuildTool: BuildGame.h.obj : warning LNK4217: locally defined symbol ??0FName@@QEAA@PEBDW4EFindName@@_N@Z (public: __cdecl FName::FName(char const *,enum EFindName,bool)) imported in function "void __cdecl `dynamic initializer for 'NAME_DeviceType''(void)" (??__ENAME_DeviceType@@YAXXZ)

What could be the cause of this? I can compile the game solution from VS, and from the Editor. I can also Play the game in the editor. This just happens when trying to Launch it.

This is what I tried so far:

  • Clean the project in VS, build it again
  • Rebuild the project in VS
  • “Refresh Visual Studio Project” in the Editor
  • Restart the Editor and VS
  • Reboot