The reason Z programs usually run fine in QA and Dev environments is because there is far less relevant data. Please can you post your section of code here which is accessing this table.
Also, you can try some of the runtime analysis tools which are available, here a link for this purpose: