Length of video doesn't matter so long as what you have already processed is written/flushed to storage media. It doesn't need to keep more than a second or two of video in memory, mostly only enough to process between key-frames.
Oh! That's probably the reason why most of my TLOU2 recordings are borked on PS4 pro. The hdd write speed can't keep up, so it skip frames, and taking ages to finish saving the video.
PS5 and xsx won't have that issue but it makes me wonder it's wear and tear or effects on ssd temperature (constant writes for a long time). Hmm, probably zero practical issue tho. Even My ancient Sony tablet use ssd that was tortured every day and it's still working just fine haha. It does stalls tho at rare times