Also, as @aggi says, shoot raw+jpg. Take an extra card or three and remember the old reportage photographer trick of putting the rolls of film in your socks - swap cards frequently and hide one in your sock or another difficult-to-lose location. If your card corrupts, is stolen, etc, you won’t have lost all your photos thus far.
Depends on the mistake.
Also, as @aggi says, shoot raw+jpg. Take an extra card or three and remember the old reportage photographer trick of putting the rolls of film in your socks - swap cards frequently and hide one in your sock or another difficult-to-lose location. If your card corrupts, is stolen, etc, you won’t have lost all your photos thus far.