Thats a strange one.
The S:5 bit that probably caused the fault should stay ON when the CPU went to stop mode, thereby allowing you to investigate.
Try to copy S:5 to an intermediary word as the last thing in file 2. Then compare the copied word with the error bits.
The most common minor error is the math overflow bit S:5/0.
I normally check it at the end of file 2, and if it is set I unlatch it and generate an alarm on my HMI.