Hello Eric,
When you have such dumps there's is no need to debbug the code. If it's in a standard code there should be a SAP note or you have to open an OSS message.
By the way, have you checked??
1954326 - SAPSQL_ARRAY_INSERT_DUPREC error when you execute
authrization synchronization
Cheers,
Diego.