Try reinstalling the old CPS ,....
What brand is the camshaft position sensor? Only use Bosch for this and the CPS.
Some camshaft sensors were bad from the get go. If it is not a Bosch I would put the old one back in and also use the Bosch or the original CPS.