As temp solution in my project, i'll add this lines to retry middleware
if retries != max && request_body.present? && request_body.is_a?(Hash)
          request_body.each do |key, value|
            if value.is_a?(UploadIO)
              value.rewind
            end
          end
        end