How do you stop overthinking everything when watching a movie?

I love fantasy and sci-fi, but recently, I have been having this issue where it is hard for me to be immersed because I can't stop thinking about all the ways something doesn't follow the laws of physics. Like, my brain is constantly nitpicking and being like "that's not actually possible in real life." It sucks because I really enjoy these stories and don't want to stop loving these things, which I am deeply afraid of happening. How do I overcome this?