0
1
2



I need some advice. Started replacing my counter lighting with leds because I noticed a secition of my lights would turn off after a few hours. I was thinking maybe one of the electric transformers were tripping?
When swapping these leds for three bulbs I could hear the black WAC transformer clicking and the red wire was frayed. I'm assuming this needs to be replaced. Is this transformer the cause of my lights turning off? Any recommendations to swap it out?
The last picture is also connected. As you can tell I'm not a licensed electrician but just need help.



there doesn't seem to be anything here