私もそのエラーがでました。
下記のmaze2904さんの方法で解決しました。

M5Stack Basic V2.7: can't install library M5Stack | M5Stack Community
https://community.m5stack.com/topic/5642/m5stack-basic-v2-7-can-t-install-library-m5stack/5
M5Stack Library won't install on Arduino IDE · Issue #314 · m5stack/M5Stack
https://github.com/m5stack/M5Stack/issues/314

The package's name "MODULE_GRBL13.2" in library.properties should be "MODULE_GRBL_13.2" (underline instead of space before 13.2).

So

download M5Stack unzip it edit file "library.properties", line to "depends=M5Family,M5Module-4Relay,MODULE_GRBL_13.2,M5_BMM150" zip it and install zipped library restart IDE update now performed flawless

m5stack/M5Stack: M5Stack Arduino Library
https://github.com/m5stack/M5Stack
からzipファイルをダウンロードして
解凍して
library.propertiesを
"MODULE_GRBL13.2" から "MODULE_GRBL_13.2"
に書き換えて
再度ZIP圧縮して
Arduino IDEで
sketch > Include Library > add .ZIP Library...
からそのzipファイルを追加して
Arduino IDEを再起動したところ、解決しました。