visual studio errors found in project backend files

Summary

When starting a new top down project, me and my friend have tried:
reinstalled visual studio and unreal engine plugins,
following every guide we could find to set up our visual studio settings for unreal including epic game’s guide,
After all of this, we still get the same errors in the scripts “StaticAssertCompleteType.h”, and “IsContiguousContainer.h”.
In both scripts we get the same errors dotted about:
E0842 and E0094
[screenshot of error page]

Please let us know how we can fix the errors or fix visual studio so we can actually use the engine as at this point we cant even build our code changes successfully in our first ever projects.
Thanks from Henry and Tom

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

use visual studio 2022 with unreal engine 5.7.1 with any template then open the player script (or any c++ script) inside the project

Expected Result

work on code and build successfully

Observed Result

errors shown in image and unable to build successfully

Platform(s)

unreal engine for windows 11 ver.5.7.1

Upload an image