Yeah I know, it jiggles around really bad. That's because I couldn't find anyone who could tell me how the train entity is rendered by the devs and I... couldn't be bothered figuring out by trial and fire.. I definitely wanna revisit this mod at some point, but rn I unfortunately don't have the time.
Hello there
If you wanna know how to define the animation property of factorio entities you could have a look at one of my many vehicle mods. I even got a train mod (War Rig).
I had a look at your spritesheets and the only problem I see is that the first column of some of the sheets contains the wrong rotation. You wouldn't need to change a single line of code if you just fixed that. The file reads the spritesheet from left to right and then from top to bottom. And the rotations of a vehicle start with the north facing orentation, going around clockwise.
I dunno how you make those sheets, I myself use some self written python scripts, but just make sure that you put them into those sheets in the previous mentioned order and the glitches should disappear ^^