Your first code, P2076 is saying there is something wrong with the Intake Manifold Tuning valve. Which could cause the second code to show up, P0031. It's a long shot but I would check the connectors on the intake tuning valve sensor for corrosion. If there is any, clean it and reconnect and see if the code goes away. The other code P0031 refers to your upstream O2 sensor. It's saying something is wrong with the sensor like the wiring, connector or the sensor is just bad. But I would check the P2076 first before replacing any parts and see if both codes goes away.