Error in archiving data

/var/www/matomo/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): Error reading result set’s header - Matomo 3.13.0

and

/var/www/matomo/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): MySQL server has gone away - Matomo 3.13.0

Hi,

Both of these errors mean that PHP tried to send a SQL query to MySQL, but didn’t get anything usable back. Please check the error log of the database and this FAQ:
https://matomo.org/faq/troubleshooting/faq_183/

my mysql onfig is:
log_error=/var/log/mariadb.log
max_allowed_packet=1G
long_query_time = 10
max_connections = 100
innodb_thread_concurrency = 4
innodb_flush_method=O_DIRECT
innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1
innodb_flush_log_at_trx_commit=2
innodb_log_file_size=6400M
innodb_buffer_pool_size=12800M
innodb_buffer_pool_size = 4
innodb_lock_wait_timeout = 500
thread_cache_size = 128
query_cache_size = 64M
query_cache_limit = 16M
query_cache_type = 1
wait_timeout = 3153600
max_tmp_tables = 200
table_open_cache = 500
net_read_timeout = 120
net_write_timeout = 120

My problem is still.