Who knows 5.7 fault code diagnostics?
Without going through all this, you have had a cam/lifter failure that has been repaired? VVT solenoid NOT replaced? If this is the case, there is metal trash in the screen filters of that solenoid. Do the math from there.....