PackageWriteImpl: Report error when failing to read .PackageInfo

Fixes #10228.