There seems to be an issue where a year could be recorded as either time="+0000000YYYY-00-00T00:00:00Z" or time="+0000000YYYY-01-01T00:00:00Z" (with precision=9).
These display the same but if you compare the claims they show up as different. I also believe only the latter is correct.
To further complicate things it is not possible to manually change a value from the first to the second in Wikidata without creating a new claim and deleting the old one.
Is there a way of checking how many of the first there are and possible convert these to the latter? It would also be interesting to either prevent one of the ways from being recorded (also via the api).
See also T103378: [Bug] Dates with “month” precision are offset by one month on Wikipedia