Now came another problem, variable $nSize is showing the negative value -1966681746bytes and correct value would be 6623252846bytes

any other tips to prevent this from happening?
_________________________