i am experiencing this problem since I was doing assembly modelling
Before adding backgrounds and textures, try to render your assembly basic. And use a small assembly. This is to test if you have the required RAM to render a full assembly. So start small and then go bigger and better until you fail a render. Post your PC specs here.