Linking this other discussion that reports the same problem: Per particle scale error: Rescaling factor is nan