A heat pump in air conditioning mode works just like an air conditioner. The likely reasons for freeze up are dirty air filter, plugged up condensor, or low charge.
The most common reasons would be either a dirty filter (fixed by changing), a contactor sticking (fixed by changing the contactor), a malfunctioning condensor fan, or low refrigerant.