Engine runs rough without power and stalls sometimes at idle on 2001 Volvo V70

the engine stalls after warmup and runs rough and jerky
it will not run above 4ooo rpm
my OBD code reader reports two error codes
P01221 throttle pos sensor A
P1238 Turbo Control Valve

Asked by for the 2001 Volvo V70