Grove AI HAT on Raspberry Pi

this might problem with Arduino IDE version, so can you try with Arduino IDE version 1.8.9.