I searched for that error, and it appears that it is a sign that the Plugin has not been loaded properly?
The above thread is from a much older version of C4D, but the issue is similar.
So the “missing shader” issue might be just a side effect of the Redshift plugin not being loaded when the application is running in batch rendering mode.
Check out the thread and see if anything sounds familiar…