If you are leaking exhaust gases before either the pre or post cat lambda sensors, this will give you running issues. The pre cat lambda is a common fault on these and do give the symptoms you describe, I would get the exhaust fixed first then look into changing this.