It is common for air conditioners to malfunction and shut off on their own. Mostly, it is just a glitch that you can eliminate yourself, if you keep yourself updated regarding how your air conditioner is working.
An important tip that we can give to you is ensuring there is no water leakage through the insulated piping or anywhere in the outdoor unit. If there is any leakage, try to find the problem and fix it up with an epoxy.
For any serious repairs, our air conditioner repair services in GTA are just a phone call away.