Unwanted black frames around fog material
The problem and the solution to it is mentioned in the video you are linking to (appr. 20:10).

You have to increase the max bounces for Transparency under Render Properties / Light Paths / Max Bounces until the "black boxes" doesn't show up anymore.