The cause of the bug was that I created a game object,
added a collection factory,
and then set a collection prototype.
Later, I accidentally deleted the collection prototype file.
During compilation, everything worked normally because the collection factory object wasn’t used.
However, during packaging, an error like this was prompted.
Although the error can be resolved by manually checking each instance,
it would be faster if the packaging process indicated which game object was referencing the deleted resource.
In large projects, it is indeed difficult to identify which game object resource was mistakenly deleted.