Are you sure your game project is set to the default visual studio project (it’s name should be in bold letters).
It seems like you are trying to compile ArchiveProxy.h which is part of the engines runtime. I think you may be building the engine (UE5) instead of your project.