That is including a header file called BasePawn.h. That’s not the file itself.
I’m probably being blind but I don’t see an issue with what you posted. Would you mind sending me your project using the following link?
Please use File > Package Project > Zip Up Project within Unreal as this will ensure only required files are zipped up and things like the Binaries are excluded.