PWM frequency settings for XIAO MG24 (sense)

My project on XIAO MG24 sense includes steering Motors via PWM, coding in the arduino IDE.

The PWM-frequency effects the loudness and torque of the motors, but I can not find out, what settings are used on the MG24 and how I could change them.

There seems to be a difference compared to the ESP32-C3, motors have less torque.

Can you help, where to find this?