If your AC turns off after running for at least 15 minutes, the unit is short cycling. Therefore, it needs to be addressed and fixed immediately to prevent damage to the system. It is advisable to hire an HVAC expert to solve this issue.