Finding a spoiler…
Spoiler alert
Sarah teaches herself quantum physics, blows them both up in the cave, and it actually gets them out of the time loop.