Wheels are probbaly not in gauge.
Or the lead truck is not freely swiveling. If that loco has a sprign on the lead truck, it might be too stiff, causing the truck to puch too hard against the flanges on a curve. WHere is it derailing? Is it picking the frog point, or elsewhere?
--Randy