Pixel depth node output shaded red/ throwing errors

Is the output on pixel depth supposed to be shaded red like this?

I’m having issues with camera depth fade. I’m rendering detail maps based on camera position, but I just keep getting errors. It’s a fairly large master material, everything works except this. Shader error seems pretty common when mixing bump offset and world alignment options. But I’m stuck on this one.

257553-shader-error.jpg

257552-pixeldepth.jpg