In PDB-4315, it was identified that PuppetDB should also have a "name" field in the resource_events to further guarantee uniqueness.
Add this field in the terminus and the database.