This dependency is because of the ZIP64 extension of zipfile. So zipping up to 4GB works.

I think the cleanest option is to check the file size or do some sort of error handling and then display an error message to the user.