Sorta looks like a shower head driver, but I think they are larger.
Edit- If you pulled it out of a light, I am sure it has bad PWM or some next mode memory. That has been my experience with loose drivers.