It could be the file wasn't written correctly. This could happen if the Spine process terminated or power was lost while writing the file. When a file is written, the data is sent through the OS and there are various settings for how that works. It is possible that the OS accepts the data but has not yet written it to the physical drive. Removing power to the computer at that time can result in the file not being written or being written partially. The same can happen at the drive level. Nearly all SSDs accept the data immediately, keeping it in RAM until it can be stored permanently. A good SSD should have enough capacitance that it can complete storing the data even if power is lost, but not all do.
Data stored in RAM, whether in the OS or in the drive, can be corrupted by a cosmic ray:
Studies by IBM in the 1990s suggest that computers typically experience about one cosmic-ray-induced error per 256 megabytes of RAM per month.
Data in RAM can also be corrupted by failing RAM. If the corrupt data is written to a file, the file will have the bad data. ECC RAM reduces the chances of this being a problem to extremely unlikely. Unfortunately that isn't in use in most workstation computers, even though there is no good reason for that. It's so unlikely that a cosmic event corrupts data we all just pretty much ignore it.
Another possibility is that the file was modified after it was written. This could be done by malicious software or by accidentally overwriting the file with other software. It could also be failing hardware, where the data was not written correctly or can't be read correctly. That means you could write a file but get back different data when you read it later.
I doubt moving to GitHub would cause this problem. If you don't see it happening again, I would just chalk it up to leprechauns. 🍀