Only part of my ride was saved

I rode the Figure 8 Watopia course and when I saved it, not all of the ride was saved. I rode 18.9 miles and only 15.1 is showing as being saved.  The fit file will not upload to Strava as well because of the below message.                              

The upload appears to be malformed and we are unable to process it.

Any help?