Arbitrary PWM frequency while using SPI?

so that SPI wouldn't work properly anymore.

No SPI does not require a specific frequency to operate. The master supplies the clock so it can be virtually anything so don't worry about changing the clock speed and messing up the SPI.