can you please confirm the PRPC version used here,
Based on the stack trace i am assuming this is Pega 7.4. looking at the source code, i cannot think how we could get the "divide by zero" exception, i see a "if" to check the same in the code.
also it could be that some other error might have caused this, In the DF progress page do you see more than one records/components records under failed, may be check other records to see if there are different exceptions.
Does this issue occurs frequently? can you give more details of the setup.
1. number of DF nodes,
2. number of threads configured on the DF cluster setting.
3. how many partitions you have in your primary source data
if the issue occurs frequently i think you should raise a support request with Pega Support