Hi, In GRAY M5STACK unfortunatelly PortA is used for I2C to some internal chip. Sometime GPS not work on Grove Cable.
Just connect GPS to
16RX <<< TX White
17TX >>> Rx Yellow
And all start working with no problem.
Example code from Arduino works if You add
#define RX1 16
#define TX1 17
...
void setup()
{
M5.begin();
M5.Power.begin();
GPSRaw.begin(9600, SERIAL_8N1,RX1,TX1);
0_1620524777250_30c66d7b-be90-4ac1-80ac-0815ae8019a6-image.png