We've occasionally encountered an issue with Apple devices where macOS doesn't recognize .gpx files as a type of .xml file and automatically adds an extra file extension.
You can resolve this by manually changing the file extension.
In Finder, locate the file. Right-click and select "Get Info".
Find the section "Names and Extensions". Delete the .xml extension so that your file is only a .gpx.
Select "use .gpx" when prompted.
Your file is now compatible with Gaia GPS.