Can you try to use this undocumented option "3pass" for large targets:
Note 1990866:PowerBuilder crash when building large/complex targets generated by ORCAScript …
scc refresh target "3pass"
This option was introduced with PowerBuilder 12.1 but should work with PowerBuilder 12.5.2
HTH
Jacob