Please do not do this
If you start 'wriggling' wires around you could electrocute yourself
1) turn off electricity to the lights and then test the connections to the transformers and lights.
2) with the transformers out of the hole in the ceiling turn on the electricity and see if the same lights go out after a while - if so then the transformer is damaged and needs to be replaced. If not turn off electricity and replace everything in the whole and test again, if the light goes out again then the transformer is overheating and needs replaced
NEVER NEVER NEVER wriggle with live wires
Mr handy Andy
November 2008