Clogged condensate drain should not cause the coil to freeze. Perhaps
there is a float switch shutting the outdoor unit off? I suggest that
the drain may not slope continuously downhill, that will make it clog
more often. Use heavier pipe, not the lightweight "SDR" thinwall PVC.
Make sure the drain terminates above grade outside.