Sparks from desk lamp?
Lamps below the low contact voltage are not uncommon. I have installed many “fancy” systems that the conductors are not insulated and the lamp holders clip on to the wires . Some fixtures have fancy looking loops with the same exposed wiring. I am sure it scared the #%%^ out of you but it is not dangerous. I think it is 15vac and 30vdc