Getting the Error: "KismetMathLibrary.generated.h already included, missing '#pragma once' in KismetMathLibrary.h"

This is in a C++ project that was working fine but now I’m getting some errors when trying to compile the code to open the project.

I get the errors below.
image

Looking at the pace the error happens.
This


and

So it looks like “#pragma once” isn’t in the specified locations.
The problem is that, “#pragma once” is in these locations.


and

I searched for any other location where the “.generated.h” file is being included but there seem to be none.
I also searched if the macro was being defined in any other location with no luck.

The that these files haven’t been touched/edited so them throwing errors not make no sense.

If you have any ideas as to why this is happening please let me know.
Any help will be greatly appreciated.