I should chime back in and say that my earlier suggestion about using ThreadsX was probably more of a distraction than actual help. I just didn’t know that Folds.jl existed when I wrote that. Probably a good idea to switch over to that one.
I wouldn’t guess that that would solve the issue you’re seeing, but I’m just a little worried I’ve made an extra distraction by suggesting a different package. Sorry about that.