The field Reference must be a string with a maximum length of 128. Error code: 0

Trying to add an item to a queue but am getting this error

The field Reference must be a string with a maximum length of 128. Error code: 0.

The reference string is NOT longer than 128 characters. We have jobs that load items into the queue that are 1,000 characters long and longer.

Any idea what is causing this error? Happy to provide more details if needed

The reference is only 128 because it is used to identify the entry. It needs to be unique because if you are using unique id this is what is used to create it. The item collection is where you can enter all you information with no length requirements.