So recently my turbo died... So I replaced it. Brand new Garrett.

Before it died the engine light was coming on and I thought it was the fuel filter. I've got a new filter, didn't turn it off.

Then the turbo died, thought it might've been something to do with that, still stayed on.
The intercooler was leaking pretty bad so I replaced that and installed a catch can.
I've also put EGT and boost gauge on, and blocked EGR valve

It's running a lot better and quite. It idles very smooth but the light is still on and I'm sure it's got something to do with the fuel system because sometimes when I start it, it will make a TERRIBLE rattling noise. If I let it idle or drive it, it doesn't stop.

But if I turn my car off then start it again with my foot resting on the accelerator, it doesn't make any bad noises and idles like a dream!
I don't need to give it a boot, just resting my foot on it stops this god awful rattle...

Any ideas what might be going on?