Rendering from Sequencer sometimes causes render to stall?

Hello,

During the rendering of a video that I left going for the night, at some point it stalled and only was able to render 4 seconds of useable video instead of the 30~ish minutes that it normally should’ve.
Rebooting beforehand seems to have been a temporary fix (I’m able to record the video for longer periods of time now), but I’d like to know the cause.

Why does this happen?

Thank you so much!