Another issue to consider is one I encountered with a Lionel Alco S2 switcher. It was brand new and would derail going into a curve. It turned out, the traction tires were way too thick. I took them off and it solved the problem.
I replaced them with thinner MTH tires and they worked fine…here is a before and after. Photo set…
Tom