Good day boys and girls

A client phoned me about two lights that stopped working in his braai area.
The LED lights are an ad on to an existing installation
The lights he bought online for R50 each. The lights have a LED strip and a two wire transformer with no earth point.
When removing the lights a black spot was visible on the new plastic ceiling where the lights were.
My questions are, if the steel base of the lights were earth, could this have been prevented?
Secondly the area the house is in have power problems due to surges, power ranges between 200V and 240V depending on the day of the week and time the power was measured
Are lights bought at an online store necessary safe and do they adhere to our safety standards in other words are they safe to use and install?
Any advice is welcome especially on preventing surge damage to LED lights

Greetings