I think you are right. When these whiz kids flashed your ECM, it looks like they took out/disabled some functions the emissions computer is looking for.
Sounds like a new ECM is in your future. Your Porsche dealer can provide more info. and advise if I am off base here.
Good luck.