My mazda tribute stalls out on me. When I slow down or coming to a stop. Help me.

Scotty I have cleaned the throttle body, replaced air intake gaskets, iac gasket, cleaned iac, replaced vacuum hoses, new spark plugs, battery, air filter, compression test 190, 190, 190, 195, replaced alternator....vehicle struggles to idle...500 to 1200 rpms and shuts off when a.c. or heat is on level 3/4 fan.....H E L P...shuts off when at light but fires right back up with no issues...H e l p