I found Intellisense highlights pragma once as an error.
I saw some issues but I couldn't fix it.
Does anyone know the solution?

Describe the bug
Sometimes I get the same on some header files. I am using completion based on compile_commands.json, which by design does not provide include directories for headers alone. This sometimes results in errors like this. It can be mitigated by manually adding "includePath" setting as a fallback for "compileCommands".
If you use C/C++: Log Diagnostics you can see how that header is being compiled with other source files for the translation unit to find out what include files aren't being found.
The squiggle is not intended to be on the #pragma once but intended to be a "locationless" error at the start of the file.
@qneverless @sean-mcmanus
Thank you for the replies!
As you point out, the error was due to the include path error.
There was include problem in the directory I don't use, and the problem was solved by excluding this from the include path in c_cpp_properties.json.