TTree memory corruption

Hello. Yes, I had searched the forum but the two closest cases don’t have a resolution.

Hence hoping I can get input here. In any case, I have kept the simulations to run again with the following additions to increase TTree size and widen basket size. I will check if it works now.

tree->SetMaxTreeSize(200LL * 1024 * 1024 * 1024);
const int BASKET = 128000;
tree->GetBranch("branch_1")->SetBasketSize(BASKET);
.
.
tree->GetBranch("branch_23")->SetBasketSize(BASKET);