I believe, when there’s a Sketch & Toon present in Render Settings, if you switch the project to V-Ray, Sketch. & Toon gets hidden VS. getting removed , that causes the crash at some point.
Upon testing your scene I couldn’t replicate the crash on my end. I tried both with your scene and creating a new one from scratch but both times the scene was rendered without crashing.
Could you please share some information about your setup (CPU, GPU, GPU driver version, RAM, the exact versions of V-Ray and Cinema4D, OS)? Also, please send us a recording of your screen where you create the scene from scratch and it crashes after that. Thank you.
Also, could you open a terminal and execute the following two command lines to check the current file limit per process and process count limits. Please share what is the output once you execute the commands.
Both values are good so this shouldn’t be the reason for the crash. Could you please provide the details, requested in my previous post about your system and a video recording where you create the scene from scratch and it crashes after that. Thanks.