I decided to change the unit entirely. I could have changed the cycling thermostat but the molding was also peeling off therefore replacing the whole unit made more sense. I had to cut the cup a bit so that it fits under the water dispenser. It was bigger than the original cup.
I will replace the water filter housing when I replace the filter as scheduled since it only leaks then.