commit-graph: detect read errors when verifying graph chain