Most ice makers use a heater coil in the assembly to heat the ice cubes when they have frozen so they can be pushed out of the assembly. A temperature sensor in the unit signals that the ice is below freezing and initiates the dump and refill process. The heater is supposed to turn on briefly and then turn off after the unit fills with water. One of two things may be happening, with two different results. First, the temperature sensor may be bad, telling the unit that the ice is frozen, and if so the ice maker will keep cycling and refilling and dumping what it thinks is ice. Second, a set of contacts or a driver transistor may be shorted, keeping the heater on all the time. If you can, set a small container of water next to the unit for a few hours. If it freezes, the heater has got to be on... The temperature sensor may be a small item you can easily replace...
https://www.amazon.com/627985-Thermostat-Refrigerator-Whirlpool-W627985/dp/B07VSXJZRF/ref=asc_df_B07VSXJZRF/?tag=hyprod-20&linkCode=df0&hvadid=366309269017&hvpos=&hvnetw=g&hvrand=6033246718281758526&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1015088&hvtargid=pla-806677026840&psc=1&tag=&ref=&adgrpid=73640754142&hvpone=&hvptwo=&hvadid=366309269017&hvpos=&hvnetw=g&hvrand=6033246718281758526&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1015088&hvtargid=pla-806677026840
A hand-held temperature sensor can be used to monitor the temperature, but really, if water's in the freezer and not being heated it must form ice...