Looks like this is your problem…
C:\Users\xxxx.platformio\packages\framework-arduino-samd-seeed\variants\XIAO_m0/variant.h:219:25: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SerialUSB
^~~~~~~~~
Looks like this is your problem…
C:\Users\xxxx.platformio\packages\framework-arduino-samd-seeed\variants\XIAO_m0/variant.h:219:25: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SerialUSB
^~~~~~~~~