Your error message indicates a problem accessing a versioned row in the table 'abc.def' in the 'PROD' database. This issue occurs when accessing a versioned row on a readable secondary replica in an Always On Availability Group.
I am assuming the following since you didn't provide enough details :
By default, readable secondary replicas in an Always On Availability Group are set to disallow connections. Ensure that the readable secondary replicas are appropriately configured to allow read access. You can check this configuration in the Availability Group settings and modify it if necessary.
If the readable secondary replicas are set to allow read access, the error message suggests that the problem might betiming-related. It's possible that the secondary replica is experiencing synchronization delay and hasn't yet received the versioned row. In this case, you can try running the stored procedure again later when the synchronization has caught up.
Ensure no conflicts or locking issues prevent the readable secondary replicas from accessing the versioned row. Review any concurrent operations, locks, or conflicts occurring on the primary or secondary replicas.