An electric heater is the best option if you can arrange it. They typically have a thermostat built in to keep the water cool, but unfrozen (~40 degrees). Some are rated to be safe in plastic like this one: https://www.ruralking.com/chicken-bucket-waterer-deicer
You might want to consider...