I had a similar problem, and I resolved it by training myself to remind myself of a point of no return, that is, a distance from the light at which I will go no matter what. So every time I see a traffic light, I decide where is the point of no return.
I think establishing point of no return is the standard method of dealing with this. For example, parachute jumpers have a certain altitude at which they have to make the decision whether to land on the main parachute or backup parachute if something goes wrong with the main one.