Script node failing to parse WFM shift swap data

Is it possible to dynamically inject agent shift swap details into an Architect script node? Our custom YAML config fails with a 500 Internal Server Error when referencing the shift_swap attribute during peak Chicago morning hours. The flow works fine for static schedules but breaks on dynamic swaps. Here is the failing configuration:

script_node:
 type: custom_wfm_lookup
 params:
 source: wfm_schedule
 attribute: shift_swap.status

Any insights on handling dynamic WFM data in scripts?