Often, the motor bearings are the most critical limiting factor. The mfg. should be able to provide max RPM dta for you. I have some "inverter duty" motors that provide RPM limits right on the data plate. One of them ir rated for 5000 RPM which would be ~171Hz. Don't exceed mfg. specs, or you will probably trash the motor/machine.