We are using this part for providing 24V DC supply converted from 230 V, 50Hz mains supply. The converter topology used is Flyback. The application aims to have high power factor. The issue seen with it that at lower load like .1A, power factor is reduced to very low value (around 0.35), whereas at high load that i.e. 1A the PF seen is around 0.9. The power factor is seen decreasing with increase in mains voltage as well. We observed the current waveform in both cases which are attached. When operating at voltage around 220V for heavy load or at around 100V for light load, the average sensed current doesn't remain sinusoidal which is caused by Turn off of the MOSFET. I have attached some Graphs with the operating condition. If having any solution regarding this, please help.
Image 1- At switch node when operating at light load
Image 2- distorted current waveform caused due to irregular switching(in image 1), causing low PF(green color graph)
image 3- Waveforms of current(Green) and secondary voltage(yellow) when operating at high load and high PF