I had something similar with my Fiat barchetta.
In the end, it was only a bad contact at the connector of the air mass sensor. (Is that the same thing as the airflow meter?)
The corrective action was, to pull the connector and treat it with some contact spray. The symptom never appeared again after that treatment.
Good luck,
Ivo