It's usually the tuner changing things in the tune that don't need changing thus causing error codes to appear. If a dealer plugs into the PCM and reads some random error code they can just wipe it, but if it's written in the tune it'll come back again. Also if the car has non standard injectors and the dealership flashes it back to the stock tune it most likely won't run very well if it even starts at all