Project with 4.18 only works with gtx 1080 or earlier

I have a project built for PC using virtual reality glasses with version 4.18 of the engine. I compile the project but it only works on computers that have the GeForce 1080 graphics card and earlier versions. On my laptop with a GeForce RTX 3070 Ti, the application closes 10 seconds after it starts running. What could be happening?