During the some of the shading for volumetrics, Cycles would try to write to a variable that does not exist if the device has the light tree disabled. At the moment this only impacts AMD GPUs with the Metal backend. Pull Request: https://projects.blender.org/blender/blender/pulls/119906