Hi there,
This error can occur when the transport between client and server is mismatched (e.g. using incorrect service port or different client and server configuration). However, since things seem to be working correctly for you for smaller number of files, I suspect the issue is in fact that to the amount of information the list status call sending back exceeds the Thrift frame size.
You should be able to solve this problem by changing the maximum Thrift frame size Alluxio uses through the alluxio.network.thrift.frame.size.bytes.max
configuration property to say 64MB. I recommend adding this setting to your alluxio-site.properties file on both the client-side and the server-side.
Best,