Hi,
What do you mean by "the lamp flashes" ? Does it try to go off, or just flash and stay on at the same brightness ?
What is the wattage and type of bulb ? I think these work with a minimum of 40W filament bulbs, and they possibly pass a small current through the lamp even when off. Can you try a higher wattage bulb or another LM12 to rule that out ?