Problem
It is possible after a broken network connection to get the restic error about invalid data returned for the index (maybe when using check).
Solution
You would need to rebuild the index, but using the –read-all-packs flag as described [here](https://forum.restic.net/t/fatal-load-index-xxxxxxxxx-invalid-data-returned/3596/27) which does the rebuild from scratch
restic rebuild-index -r $REPO --read-all-packs