Black halos

There’s black halos around objects every now and then. (See attachments).

I’m sure this has been discussed before but I couldn’t find anything on the forums and my troubleshooting turned out nothing.
I haven’t found a common denominator for this “render artifact”. It seems to turn up every now and then.
I’d gladly elaborate more on my set-up, if needed.
I prepared a small clip that illustrates the issue better but as a new user I’m not allowed to upload animations, apparently.

Any help would be greatly appreciated.

Hi Christian, welcome to the Forums.

My first thought is ‘ambient occlusion’ - which can be turned off in Project Settings, Post Process Volume, or temporarily in the viewport (Eye Dropdown → Search ‘Ambient’)

There’s also an ‘ambient occlusion’ view mode. (Buffer Visualization section in viewport View-Mode dropdown)

My second guess would be something involving Lumen.

Feel free to upload your clip/animation to Dropbox/Gdrive/etc and share a link here.