LOAD DATA INFILE can't stat file

I have one site that consistently fails the archival job with the following error:

INFO Actions[2019-10-28 18:04:34 UTC] [7727] LOAD DATA INFILE failed... Error was:
INFO Actions[2019-10-28 18:04:34 UTC] [7727] Try #1: LOAD DATA INFILE : SQLSTATE[HY000]: General error: 13 Can't get stat of '/var/www/piwik/tmp/assets/archive_blob_2019_09-43d1f15f47e402e01ce0226405667761.csv' (Errcode: 2 "No such file or directory"),
INFO Actions[2019-10-28 18:04:34 UTC] [7727] Try #2: LOAD DATA LOCAL INFILE : SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query
ERROR API[2019-10-28 18:04:34 UTC] [7727] Uncaught exception in API: /var/www/piwik/core/ArchiveProcessor/PluginsArchiver.php(185): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away - in plugin Actions

The DB user has FILE permission and the database settings are as follows:

wait_timeout: 28800
innodb_log_file_size: 50331648
max_allowed_packet: 1073741824

Thanks in advance for any help. Let me know what other information I can provide.

Hello, what version of mysql are you using?

what version of mysql are you using?

MariaDB 10.1.21 with galera cluster.