Power supplies are essential parts of many devices, from industrial machinery to consumer electronics, due to their outstanding performance and small size. However, it is crucial to ensure safety when designing and using these power supplies because poor designs might result in damage, electric shock, or even fire threats.