Which electric components could make a high pitch sound when defected?
The sound could come from a capacitor or a transformer, though that is not necessarily the part that is defective.

Personally I wouldn't mess with a switched power supply (it is very dangerous and a repair is unlikely to succeed) and buy a new one.