An easy way to help prevent this is to do regular cleaning and maintenance on your appliance to ensure it's running smoothly.
Move it around the inside of the vent to suck up the most lint. Use a long-handled stiff-bristled brush or the brush from a dryer vent cleaning kit to brush away the lint inside your dryer vent.