Activity Files Corrupt

Since Monday none of my activity files have been uploading from my pc. Only summary data appears in the companion app.

If I try to upload the fit files to training peaks it declares them malformed. Strava gives a similar message.

Can the apparently corrupt files be repaired? How do I fix this going forward?

Many thanks.