Black smoke is not enough air to burn the fuel. ( White that hangs around is fire out unburned fuel, White that fades away is coolant, blue is oil and black is over fueling for the air.)
Listening to the video it may be that the IP missed firing a cylinder and the ECM dumps more and more fuel, as the engine slows down from no fuel, to speed the engine back up until the IP actually delivers fuel and you get black smoke. ECM asking for fuel, not getting fuel it asked for, engine slows even more, ECM askes for even more fuel, finally gets it and black smoke as ZOOM! happens. Also possible timing is going way out for the actual fuel delivery resulting in smoke. Timing one way or the other - I forget - gives you both white smoke and black smoke the other way. Advance takes care of white smoke cold.
With the codes still active it looks like the IP, wiring to IP, and with 290K on the chain I agree with
@ak diesel driver 's guesses above. CPS and OPS don't agree could be from the chain hammering the valves and bouncing around. I am still shocked and reminded of what any slop in the valvetrain can do to valve stem tips...
DTC 17 - High Resolution Circuit Fault
DTC 18 - Pump Cam Reference Pulse Error
With the high blowby maybe swap entire engine rather than just the IP.
With the scanner I did not read where you disconnected the OPS connector to verify if it runs any different. Then swap IP. Then troubleshoot electrical. Last, I just look at all the scrap metal chains I have tossed or exchanged at 30K miles let alone the high miles ones and yeah, it may be chain elimination time.