Intermittent error with symlinks in package registry zip file

I'm trying to create a package registry mirror of https://github.com/nicklockwood/SwiftFormat/ with the prebuilt binary removed. After I changed my Package.swift file to use the new source, I get the following error during swift package update:

error: 'nicklockwood.SwiftFormat': failed downloading nicklockwood.SwiftFormat version 0.62.1 source archive from https://codeberg.org/api/packages/Cyberbeni/swift: failed extracting '/home/cyberbeni/.cache/org.swift.swiftpm/registry/downloads/nicklockwood/SwiftFormat/0.62.1.zip' to '/home/cyberbeni/.cache/org.swift.swiftpm/registry/downloads/nicklockwood/SwiftFormat/0.62.1': /home/cyberbeni/.cache/org.swift.swiftpm/registry/downloads/nicklockwood/SwiftFormat/DB57915F-6897-4C02-AC6A-12A85EDBCF00/AGENTS.md doesn't exist in file system

Running swift package update again or swift build --product swiftformat works properly. Although ~/.cache/org.swift.swiftpm/registry/downloads/nicklockwood/SwiftFormat has a 0.62.1 and a DB57915F-6897-4C02-AC6A-12A85EDBCF00 subdirectory.

(I'll probably reupload everything with the symlink file removed, if anyone wants to debug this, they'll need their own environment)

Edit: Swift 6.3.3, Linux Mint 22.3