If you witness an event that you want to capture and retain when riding, simply press the WiFi or "Q" button briefly. This will lock the current video segment and prevent overwriting.
Note: This feature is only available for newer models. Please check your device User Manual.