Is the new one you bought oem?
Do you powerhose the light when you're washing the car?
What's happening regardless is that the rubber seal around the light is letting water in. If you can dry out the light properly, put clear silicone around the entire seal and wipe away excess then refit it.