The solution was to set zlib.output_compression = off
in the php.ini
, per the discussion in the OP's question.
FYI, when uploading a plugin, it first gets stored in the PHP's temp folder (first one):
If such folder doesn't exist or is deleted, then WP throws an error: