The PWM frequency can be changed in the M307 H0 command. It's the F parameter, default 10Hz for bed and chamber heaters.