Hello and welcome to JustAnswer!
What have you done to try to correct the problem?
Has anything been replaced besides the spark plugs and battery?
How does the miss feel? Is it like a dead cylinder, random misfire?
Ok. If the light is flashing that is a severe misfire that could be causing damage to the catalytic converter. If the plugs have been replaced they should be ok, but they might have been damaged again. A common cause of a misfire in these is flashover. This is when spark takes a path along the outside of the spark plug porcelain and fires to the head. This ruins both the plug and the wire. This is more common than a bad spark plug in these. If your wires haven't been replaced that is definintely what needs to be done next. The bad wires can ruin a brand new set of spark plugs too. if the porcelain on the plugs have black streaks on them it's because the spark has eroded away at them. They would need to be replaced again.
you've touched on another problem that isn't uncommon. With the a/c or defrost on the a/c cooling fan has to come on to keep the condensor cool and the high side a/c system pressures down. When the fan quits working the pressures will be so high at idle it will run very rough and nearly die. It sounds like you may need a fan assembly.
The P0072 is for the ambient temperature sensor. This is the sensor mounted out in front of the radiator that senses the temperature of the outside air. This could be a wiring issue, corrosion or water in the connector, or the sensor itself.
My plugs were replaced just recently. The engine light was off when I picked up the car. The next day, after only 2 short trips, the light came back on.
The flashing engine light has only happened on 2 occasions. When the car shows signs of hesitation, I ease off the gas and accelorate slowly. This usually bypasses any severe jerking. Most of my car usage is around town, usually under 50mph.
What signs would I look for with a bad "pcm."