Probably an air leak. Search thread titles for your codes...and search jfoj's sig for link to 'fix your bmw' thread. There are many hoses that can break, but the first is usually the lower intake boot.
Upcoming NYC dates: Jan 8 and 27. See Facebook for other shows and PM me if you can make one...love to see you there!
Mangofy your E46!