Rendering crashes for 4K video

Hello All, I am working on a city scene and need to render a video from a bird’s-eye view. When I render in 4K resolution (mp4 format), the rendering process crashes partway through, especially when the camera is moving. However, when I render the same sequence in 2K resolution, it completes successfully without crashing. Why does this happen?