This type of error is raised by Python’s multiprocessing library, when it’s unable to pickle certain classes and seems to be related to this issue 173, which crashes if numpy tries to raise an exception. Based on the discussion in the issue it seems this was fixed on Dec 4, 2020 in numpy.