The pictures show a switch-mode transformer, these rarely go faulty, the electronics failing is more likely (and if the transformer has failed, it's likely taken the electronics with it).
Switch-mode transformers are pretty well always custom made, so even if it was faulty you would need to source one from the manufacturer, who almost certainly wouldn't supply individual components.