How does compensation network design affect feedback loop stability?
Answer: Compensation network shapes the frequency response of the feedback system in an SMPS.
Poor design leads to overshoot, slow recovery, or instability. You can choose Type II or Type III based on your control strategy (current-mode vs voltage-mode).
How to set the crossover frequency in compensation design?
Answer: Set it to about 1/10th of the switching frequency. This avoids interference with switching harmonics and ensures good phase margin (~45° or more).
View the complete article 
Compensation Network Design in Isolated SMPS Feedback Loops
Understanding Optocoupler Biasing for Stable Isolated SMPS Feedback