This is caused by some path not setting the proper usage flag on the main depth stencil texture making impossible to use stencil view of this texture. Make this flag mandatory for offscreen buffer fixes the issue. Pull Request: https://projects.blender.org/blender/blender/pulls/115361