I have read several threads on here regarding a similar issue but have not found anything to resolve my specific case.
Here is my GP version info.

My specific problem is with attaching documents using the File Explorer search bar and documents with special characters (dash - , underscore _ , period . , blank space).
The problem only exist if I search for the file using the search bar:

If I scroll through the folder and select the same document it works just fine. Only when utilizing the search bar and the filename contains a character listed above, I receive the error message:

If the document name does not contain a special character then this works just fine.
I have run SQL Server Profiler and can see that it is attempting to INSERT the record with an empty Attachment_ID when calling the zDP.CO00101SI. A file with a blank attachment_ID already exist in the table, hence, the duplicate key. I do not want to remove the existing file with the blank attachment_ID as that keeps someone else from adding another attachment without an attachment_ID as in this case.
Why does this only break when using the search bar and having special characters in the name?