The issue was caused by an attempt to write buffer pass which is actually supposed to be calculated as compositing (either summing direct/indirect lights, optionally diving by albedo). The fact that the crash was only observed on Metal is a lucky con-incident: it just happened to be so that writing at offset -1 to the render buffer did not trigger obvious issues. Pull Request: https://projects.blender.org/blender/blender/pulls/126057