Can't have multiple instances of ARView in navigation stack

I have created a view similar to QuickLook for viewing any 3D object in live camera feed and object mode. I am using ARView of RealityKit to achieve the same. The thing is it works fine except in one case.

Lets say I have a navigation controller (NC). Let's call custom quick look view as CQLView.

Now I have a view controller VC1 in NC which is adding CQLView as subview and showing my 3D object in live feed. Then, I push another instance of same view controller VC2 in the navigation stack. The VC2 is also using CQLView as subview.

There are two issues I am observing here:

  1. When I open object mode VC2, it is still showing Camera Feed in the background.
  2. When I keep pushing such view controllers, my app is crashing due to memory issues.

So my question is how do we handle multiple instances of such ARViews?