VR optimization on windows

I’ve packaged a windows file to run on my quest 2 with cable link but it does not work properly. The quality and frames per second are extremely low. But when I package the same file to run on third person view, it works perfectly fine. Am I missing something in optimization or do I need a to upgrade my hardware?

I’m using a RTX 2060 with Ryzen 5600x

Also I’m using a high speed data cable for my quest 2.

When I run publicly released games they also work fine with my setup, it’s just that when I package my own ue5 file, my gpu ram shows to be insufficient.