is always good to always write mods on the car, which tune and maps used , octane etc.
Also searching for codes here will give you straight away an answer on what they mean and possible solutions.
if you get overboost on stock tune could be a sticky wastegate. Turbo replacement.

I had the exact same issues, with or without Cobb OTS maps. I had a custom tune and turned out my waste gate actuators were wayyyy too stiff. Thankfully there able to work with the software to make them within spec again and I've not seen these codes since!

It was in 3rd. But this has happened to me when I was running Map5 and then Map0 (stock).

either vacuum lines or turbos. had this problem resolved recently turbos were replaced, actuators, and vacuum lines . turbos are covered under warranty, but the actuators and vacuum lines will run you $1,200(this is the tax included total with labor from BMW).