"Out of Memory" Error when trying to render a cinematic sequence in the City Sample

I’m having trouble trying to render a seuqencer in the City Sample. (Small City Level). It either freezes or an error message pops up saying that my memory ran out and my GPU crashed. Is there a solution for this? I have a rtx 3080 with 32 gb ram.