Whatever the exact reason for the problem is you have proved that the photocell is incompatible with that particular application or location. I would suggest a different type or make of photocell, or moving it to a different location, depending on what's most practical.