I don't know much, but I susspect the MAF sensor. It causes your car acting weird and engine light on. Code show " fuel trim". It happened to my wife 98 C280.
Check following links. Hope this will help.
http://www.benzworld.org/forums/w202-c-class/1362432-my-c220-stalling-me.html?highlight=mass+air+flow
http://pages.prodigy.net/jforgione/MB_MAF.html