White squares using the DoF effect.

I am using the standard render pipeline, default 3D preset. After I added a Depth Of Field effect on the Post-Process Volume the rectangles appeared and started blinking randomly. Here is a GIF showing my problem. I need to use DoF because without it the scenery looks really bland. Does anyone know a solution?

Thanks.

Nevermind, I figured it out. It only happens with camera “rendering path” set to “Forward”, changing it to “Deferred” fixed the issue.