Without knowing what the crash message is, it would be very hard to diagnose. Rendering directly to video, especially large animations risks everything if something crashes. Suggest rendering as individual frames, then combine later as video. If it crashes again at 4000-ish, you can simply resume the render at that point.