The solar lights should be IP65 or more for outdoor use, some solar lights manufacturers don’t produce them with good IP65 waterproof function, so water goes inside. In this case, you should contact the solar lights suppliers for new solar light replacement.