Weird electrical gremlin

First thing to do is swap bulbs side for side. If that provides confusion, try one bulb at a time, leaving one bulb out. If the installed bulb works OK, put IT in the other side

I agree could be a ground problem, bad socket, bad bulb

On a side note, one thing I absolutely DETEST are the "new improved" "inline" park / signal bulbs