Odd, P0039 isn't listed in my manual and Google calls it "Turbocharger bypass control valve" problem.
If you're not sure whether or not it's the chip, disable the chip (it should have a "non-functional" mode) and try the car without it. Then raise settings from the bottom until you get the problem again and just don't go that high, maybe?