Whirlpool MW humming and smelling

the fan on the microwave was humming and rotating very slowly. There is also an electric motor burning smell. Nothing would make it stop except unplugging it. after taking apart the front and lightly tapping on the air duct next to the humidity sensor the hum stopped. I know that the tap is not a fix. What could be making this happen?

new issue…i noticed that the fan only acts up after something is boiled on the stove. Does that make any sense to anyone?