Have you checked what your csv file sizes are?
Since the entire CSV file is being written to /tmp
before being read back for upload, there is a possibility that the temp storage is getting exceeded. By default lambda gives you 512 MB of storage but it can go upto 10 GB now.
Lambda Ephemeral Storage Update