Edge 1050 corrupting FIT files

First time I've ever seen this on any Garmin unit.  I rode on Sunday, and my Edge deleted 75% of my data.  I stopped and powered down the unit mid-ride.  When I ended the ride, the totals were all right, but FIT file only saved the last five miles after I powered it back.