You are going to have to read the code, then come back and ask. The A/C issue is strange, but if you have an erratic idle that may be related to the kickdown situation than the A/C.
Turn the A/C on at idle and note the idle, see how it changes without being in motion. The car should increase idle to compensate for the A/C compressor energy loss.