Increasing the switching frequency ... causes a rise in eddy current
losses in the motor and switching losses in the controller.
This is not necessary to be true ... if the PWM rate is high enough, the current in motor does not change too much. PWM does not make alternating current in motor (commutation does), PWM only switchs on and off force which keeps current on wanted average value, current flows via winding also when transistors are closed, because of its induction, and that induction is key for proper PWM setting. The higher the PWN is, the higher are switching loses. But you do not want current completaly stop (at low PWN frequency), because ohmic loses on motor winding are different at constant current and different at current switched on and off, because loses are = I^2 * R so if you have constant current 1A on resistance 1 Ohm you have 1 Watt, but if you have current 10A for 1/10 of time what gives the same average current (the same torque on shaft), loses are 10 ^2 * 1 /10 = 10W ... so that is reason why we want higher PWM frequency - it will make little higher switching loses but much smaller ohmic loses .. up to some optimal value
Eddy current at higher PWM will be higher if current really jumps between 0 and 10A. Twice higher frewquency will make twice higher eddy loses ... but also only to some value of PWM frequency, if coil induction has enough power to keep current almost constant, PWM caused eddy loses will disapear.
So there are 3 effect determining proper PWM frequency. Peter's values shows 8kHz and 12 kHz are close to optimum.
However one note is important here, higer battery voltage will need higher PWM frequency, it is because also ohmic and also eddy loses will be higher because higher voltage will be able to make higher ripple current. It means that if we compare static tests and in flight tests, we can get different results as battery has reatively higher voltage with unloaded motor during flight, si it will be good to make static tests with smaller prop by aproximately 1 inch. If battery voltage is equivalent to voltage necessary for wanted RPM, PWM can even disapear and thus also its loses. That is also answer why even higher motor load (especially lower pitch at higher RPM) can lead to coller ESC.