Absolutely sure.
And to make things even stranger, while many directories with as little as 100-200 files give the buffer error, other directories with more than 300 files work correctly.
Perhaps it has something to do with filename lengths?
I.E. in the directory with 350 files, they all are smaller than 20 characters in length, while in the 200 file directory they are closer to 60 characters a piece.