K.F.
The issue with the lights failing the inspection has to do with how the lights were installed. A licensed electrician would be the most qualified person to provide you with the proper information and installation of these lights.
I doubt this light is a fire hazzard in how it is constructed but needs to be properly installed (wires grounded). Even another light fixture would need to be grounded according to the inspectors.
I hope this helps.