@capedra until the PR is merged and a new release is produced, you can choose to install the M5Core2 library without dependencies to skip that error message.
The dependencies for M5Core2 (M5Family,M5Module-4Relay,Module_GRBL_13.2,Ethernet2) can still be installed separately.