Foul, chemical-like odors can indicate refrigerant leaks or electrical overheating
https://regionalairconditioninghelp882.tearosediner.net/emergency-guide-what-to-do-when-your-ac-stops-in-florida-heat
Foul, chemical-like odors can indicate refrigerant leaks or electrical overheating. Turn the system off and avoid prolonged exposure until it has been checked.