iOS edge swipe weirdness

I need the iOS swipe on edge to go back gesture but it causing weird animation. Here’s a video showing it:

How do I prevent this from happening?

Thanks