You can use the “front screen” of your phone to help you see your way out. It’s much more energy-efficient than the flashlight mode. Remember to set “airplane” mode so you don’t run out of charge. And don’t try Google maps, you don’t have connectivity in caves.
Don’t imagine that this is a long-term solution. If you find blind crayfish, reflect on how they adapted.