It may not be the icemaker. It may be that the self-defrost drain line has plugged and what you’re seeing is condensate that won’t drain as it should into the drain pan at the bottom of the box.
Modern refrigerators contain a feature that allows them to periodically self-defrost (I should know how, but I’m not clear on the mechanism) and drain that as liquid condensate (water) to a shallow, flat evaporator pan at the bottom of the fridge. Because that pan is so broad and the amount of water that collects there is so small when things are working properly, the water evaporates into the room and you never even know that it was there.
But sometimes something can plug the condensate drain line, including dust or mold that grows inside it, and then the condensate collects where it was formed. In the refrigerator you’d notice because things come out with “sweat” on them, and in the freezer you’d notice ice buildup. Check the manual for your machine, see where the condensate drain line is, and if the manufacturer recommends a way to flush or clean that (a chlorine bleach solution – not a slug of bleach!) is often a good way to proceed.