It seems like this can happen if you have a scene referencing scripts with a matching FileID, but a mismatching script GUID. It looks like unity changes the script GUID to match the ones found in the scene file
At least that's what happened in my case!