The principal cause of a frozen air conditioning system is a dirty air filter.
The air filter cleans the air spread into a place and catches dust, dirt, and other particles that block the airflow and lead the coils to freeze.