AVR_PWM library Flicking duty cycle and frequency using potentiometer (nano)

It is possible the background interrupts are causing problems. I have seen that a few times in the past. I am not familiar with the AVR_PWM library so I do not think I can be of any more help.