What OS you running? As this actually sounds like an AWS php sdk issue. Having a look though their source code shows they don’t seem to use fclose and your OS must have a limit on open files.
If you email me at iain.cambridge – at – fubra.com I’ll send you a copy of the sdk with a bug fix aswell.