Again, novice here...I’m not sure why it would help to apply a variable supply (don’t have one) to see what the light exactly needs—after all the box says output is 12-24 volts and 16hundred-odd mA...doesn’t that tell me? Maybe a lower voltage would continue through up to a point until the bad area rears its head, whereas now hitting it with full mains power brings it to an abrupt halt?You can start, with the thing disconnected from the mains, by checking parts for shorted circuits. A failed varister will do that. They are used to protect from an over voltage spike, but then they sometimes stay stuck in the conduction mode. Or you may have a failed switching transistor in the supply.
But really, you can check out the light part with a variable voltage supply and learn just exactly what voltage and current it needs.
I’ve had good luck in the past at fixing things by the seat-of-my-pants, but usually the problem areas have been it DC fields. When I replaced the two parts the other day, my shakiness was already bad (age) but made worse by the small area to try and get test leads in without creating a short and scaring the bageezus out of me!