Make sure your optocoupler is properly biased
A proper design must ensure that this circuit is capable of driving the feedback pin of the controller over its entire dynamic operating range while considering worst-case tolerances of all major variables.