I ve tried to solve the problem setting $HistoryLength=0
As I understand, you tried to set
$HistoryLength = 0
in the master kernel only. But the slave kernels still have infinity history length what you can check by evaluating
ParallelEvaluate[$HistoryLength]
I recommend you setting zero history length in the slave kernels too:
ParallelEvaluate[$HistoryLength = 0]