I believe you have an AOS problem. An AOS is less expensive than MAF sensor but a PITA to replace compared to MAF replacement.
You can try cleaning the MAF sensor and then see if the trouble codes come back. You will need an anti tamper torx and some MAF sensor cleaner.
Here is a good write-up on the MAF sensor:
https://sites.google.com/site/mikefocke2/checkenginelightcausedbymassairflowsensor