M5本体を工場出荷時設定に戻すには、公式サイトのこちらのページを参照してください。
StickC Plus2 ファームウェアの初期化
https://docs.m5stack.com/ja/guide/restore_factory/m5stickc_plus2