Well if you got as far as you did you have already installed the ESP32 boards so you can pick the correct one. I assume the core basic does still use the "M5Stack-Core-ESP32" board.
This link shows the documentation for the Grey(which I am using) and the Basic.
I can't translate all the warnings you got but the last part seems to indicate it isn't pointing to the correct config.h(or it can't find it). Config.h, i believe, is the library that is handling defining all the pins used in the stack. So without it the board has no idea what is going on.
Are you able to open other sample arduino sketches and select something like an UNO and compile just fine?
I wish I could help more. The only thing I can suggest is to step through the setup once again.