same problem!!!

solved on commenting out

gpio_deep_sleep_hold_dis();

in

Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp

I don't know why, but now arduino compile