generateKey function in Repository outputs a 10-digit integer, which is used for a record ID. The integer can exceed max size for Postgres integer column.
protected function generateKey($value)
{
$hash = sha1($value);
$integerHash = base_convert($hash, 16, 10);
return (int)substr($integerHash, 0, 10);
}
Changing the substring length will correct the issue.
protected function generateKey($value)
{
$hash = sha1($value);
$integerHash = base_convert($hash, 16, 10);
return (int)substr($integerHash, 0, 8);
}