I ran your program on this computer (not attached to the machine) and it functioned perfectly, following the tool path display.
It seems to be the same cuttings at three (maybe four) different depths in five different locations (inner square, inner butterfly, inner butterfly, inner square, then outer what looks like a doll on its side. Which pass are you saying it generally fails on.
I was going to say Mach download only does 500 lines, but that cannot be the reason, because you are well short of that. Is there anything mechanical causing your router to stop - are you going too deep, are you hitting any stops. When you say the router just stops, what does it do -
gradually slow down.
bounce about and stop.
just die. -
I cant see any reason without a bit more information.