Probably a TRIAC issue. Some old fans used a custom step down device that probably wouldn’t work with anything else. You just have to read the specs on the fan and then get a switch that matches those.
@Navat604 or one of the other electrical experts may want to chime in.