It might be helpful to put the following in init.ora and restart the database:

EVENT="1652 TRACE NAME ERRORSTACK LEVEL 3"

This will generate a trace file each time ORA-01652 occurs. The trace file should contain the offending SQL.