For the first issue: set num_workers=0 and check, if you get a better error message.
The broken pipe error is raised, e.g. if a worker process encountered an error and crashed. The complete error message might give you an idea why this process failed.