Error message 'Out of video memory trying to allocate a rendering resources' when trying to render on Nvidia 2080s but no error when rendering on AMD 5700

I have a large project I want to render to video in UE5.

I wanted to get rid of my extra AMD PC with a RX 5700 so I moved everything to my computer with a 2080S.

All the specs are pretty much the same and the Intel based with the 2080S should be more powerful.

The problem is that as soon as I go to render with the pipeline the project crashes on the 2080S machine.

I never had any issue with the AMD machine. I’m using the latest NVIDIA studio driver.

How can I fix this issue and prevent it from happing with future projects?