This tool allows you to fill the missing GPS data if there are gaps in your file without ruining file structure.
python interpolate_gpx.py input.gpx output.gpx
It compatible with Insta360 X4 GPX structure but it may be not compatible with other models and brands.
Patreon