If all the other lamps are working properly, then it is not a transistor.
So, check/replace the diode and see if that fixes it.
I had a similar problem on a pinball where someone had soldered a wire back on to the lamp, but on the wrong side of the diode... Made a few of the lamps come on when they shouldn't have, and others glow dimly.