We just had the same issue and GambitRicky's fix worked for us.
We are using the GhostscriptRasterizer (which has a viewer in it), and successive calls threw that error. Disposing the rasterizer on completion resolved it.
We are using the GhostscriptRasterizer (which has a viewer in it), and successive calls threw that error. Disposing the rasterizer on completion resolved it.