Failed to Prune Archives

Hi Im running Nextcloud AIO v10.4.0 on Unraid 7.0.0 using nextcloud-aio-mastercontainer by SpaceInvaderOne’s Repository.
Backups originally ran fine but the last couple of weeks I have been getting the following error. How can I fix this?

2025-01-22T15:59:56.160332239Z Performing backup…
2025-01-22T15:59:56.161258605Z Starting the backup…
2025-01-22T15:59:57.958082630Z Creating archive at “/mnt/borgbackup/borg::20250122_155956-nextcloud-aio”
2025-01-22T16:14:21.912091437Z ------------------------------------------------------------------------------
2025-01-22T16:14:21.912212076Z Repository: /mnt/borgbackup/borg
2025-01-22T16:14:21.912238095Z Archive name: 20250122_155956-nextcloud-aio
2025-01-22T16:14:21.912263012Z Archive fingerprint: 2493eb5ae04457a069ac729bd69ba4333388e5b95a922f8fa27f706e4b734ef6
2025-01-22T16:14:21.912283010Z Time (start): Wed, 2025-01-22 15:59:57
2025-01-22T16:14:21.912302407Z Time (end): Wed, 2025-01-22 16:14:09
2025-01-22T16:14:21.912321774Z Duration: 14 minutes 11.87 seconds
2025-01-22T16:14:21.912340770Z Number of files: 210928
2025-01-22T16:14:21.912359766Z Utilization of max. archive size: 0%
2025-01-22T16:14:21.912381297Z ------------------------------------------------------------------------------
2025-01-22T16:14:21.912405242Z Original size Compressed size Deduplicated size
2025-01-22T16:14:21.912433285Z This archive: 1.37 TB 1.33 TB 54.15 MB
2025-01-22T16:14:21.912459094Z All archives: 37.28 TB 36.18 TB 1.21 TB
2025-01-22T16:14:21.912484222Z
2025-01-22T16:14:21.912508287Z Unique chunks Total chunks
2025-01-22T16:14:21.912531962Z Chunk index: 669470 19541083
2025-01-22T16:14:21.912557020Z ------------------------------------------------------------------------------
2025-01-22T16:14:22.138881921Z BORG_PRUNE_OPTS are --keep-within=7d --keep-weekly=4 --keep-monthly=6
2025-01-22T16:14:22.138928179Z Pruning the archives…
2025-01-22T16:15:17.031378564Z Data integrity error: Invalid segment entry size 0 - too small [segment 2597, offset 108059682]
2025-01-22T16:15:17.031438598Z Traceback (most recent call last):
2025-01-22T16:15:17.031460409Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 5391, in main
2025-01-22T16:15:17.031480988Z exit_code = archiver.run(args)
2025-01-22T16:15:17.031500485Z ^^^^^^^^^^^^^^^^^^
2025-01-22T16:15:17.031519722Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 5309, in run
2025-01-22T16:15:17.031541673Z rc = func(args)
2025-01-22T16:15:17.031560399Z ^^^^^^^^^^
2025-01-22T16:15:17.031579245Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 191, in wrapper
2025-01-22T16:15:17.031598100Z return method(self, args, repository=repository, **kwargs)
2025-01-22T16:15:17.031616906Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-22T16:15:17.031635551Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 1585, in do_prune
2025-01-22T16:15:17.031696186Z archive.delete(stats, forced=args.forced)
2025-01-22T16:15:17.031718138Z File “/usr/lib/python3.12/site-packages/borg/archive.py”, line 1011, in delete
2025-01-22T16:15:17.031737945Z chunk_decref(chunk_id, stats, part=part)
2025-01-22T16:15:17.031757422Z File “/usr/lib/python3.12/site-packages/borg/archive.py”, line 987, in chunk_decref
2025-01-22T16:15:17.031776879Z self.cache.chunk_decref(id, stats, wait=False, part=part)
2025-01-22T16:15:17.031811375Z File “/usr/lib/python3.12/site-packages/borg/cache.py”, line 983, in chunk_decref
2025-01-22T16:15:17.031831603Z self.repository.delete(id, wait=wait)
2025-01-22T16:15:17.031850729Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 1288, in delete
2025-01-22T16:15:17.031870306Z self._delete(id, segment, offset)
2025-01-22T16:15:17.031889533Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 1298, in _delete
2025-01-22T16:15:17.031909140Z size = self.io.read(segment, offset, id, read_data=False)
2025-01-22T16:15:17.031928577Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-22T16:15:17.031947813Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 1643, in read
2025-01-22T16:15:17.031967260Z size, tag, key, data = self._read(fd, self.put_header_fmt, header, segment, offset, (TAG_PUT, ), read_data)
2025-01-22T16:15:17.031986727Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-22T16:15:17.032006214Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 1673, in read
2025-01-22T16:15:17.032025801Z raise IntegrityError(‘Invalid segment entry size {} - too small [segment {}, offset {}]’.format(
2025-01-22T16:15:17.032046921Z borg.helpers.errors.IntegrityError: Data integrity error: Invalid segment entry size 0 - too small [segment 2597, offset 108059682]
2025-01-22T16:15:17.032066769Z
2025-01-22T16:15:17.032086135Z Platform: Linux 11400eac1545 6.6.68-Unraid #1 SMP PREEMPT_DYNAMIC Tue Dec 31 13:42:37 PST 2024 x86_64
2025-01-22T16:15:17.032105642Z Linux: Unknown Linux
2025-01-22T16:15:17.032124839Z Borg: 1.4.0 Python: CPython 3.12.8 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-01-22T16:15:17.032169944Z PID: 39 CWD: /
2025-01-22T16:15:17.032190313Z sys.argv: [‘/usr/bin/borg’, ‘prune’, ‘–stats’, ‘–glob-archives’, '*
*-nextcloud-aio’, ‘–keep-within=7d’, ‘–keep-weekly=4’, ‘–keep-monthly=6’]
2025-01-22T16:15:17.032210090Z SSH_ORIGINAL_COMMAND: None
2025-01-22T16:15:17.032229417Z
2025-01-22T16:15:17.074118579Z Failed to prune archives!

Hi, I would recommend to start a backup integrity check via the AIO interface…