SQL Errors tablespace corrupted

Friends, I have just set up a new Matomo instance. It seemed to work fine for a day or so. Then I started importing older access.log files via misc/log-analytics/. After a few hours of successfully importing 20+ log files SQL errors started to apear whilke some widgets started to show errors/no data.

It got worse over night - the last sql error says SQLSTATE[42S02]: Base table or view not found: 1932 Table 'matomo_log_link_visit_action' doesn't exist in engine By now I can’t even log in into Matomo to post the widget’s errors.

Questions:

  • Can I fix this it whithout loosing tracked data?
  • How can I avoid this happing again? Should I avoid importing access.log files?

Environment:
Dedicated hardware server
Debian bullseys / kernel 5.10.0-23-amd64
PHP 8.2.7 / nginx/1.18.0 with a standard fpm setup
php memory_limit 256M
php max_execution_time 120
1 vhost for main website + 1 vhost for Matomo, nothing else
mariadb Ver 15.1 Distrib 10.5.19-MariaDB
Matomo 4.14.0

The first error I tracked was:

FastCGI sent in stderr: "PHP message: Error in Matomo (tracker): Error query: Error query:
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'abcd.matomo_log_link_visit_action' doesn't exist in engine In query: SHOW COLUMNS FROM `matomo_log_link_visit_action` 
Parameters: array ( ) In query: SHOW COLUMNS FROM `matomo_log_link_visit_action` Parameters: array ( )" while reading response header from upstream, client: 11.22.33.44, server: abcd.com, request: "POST /matomo.php?action_name=...&idsite=1&rec=1&r=102313&h=11&m=28&s=42&url=https%3A%2F%2Fabcd.com%2Fde%2...&urlref=https%3A%2F%2Fabcd.com%2Fde%2F...&_id=f0e8c96c3a051b85&_idn=0&send_image=0&_refts=1686731836&_ref=https%3A%2F%2Fwww.google.com%2F&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1200&pv_id=dpNYC5&devicePixelRatio=1&pf_net=0&pf_srv=150&pf_tfr=0&pf_dm1=27&uadata=%7B%22fullVersionList%22%3A%5B%7B%22brand%22%3A%22Not.A%2FBrand%22%2C%22version%22%3A%228.0.0.0%22%7D%2C%7B%22brand%22%3A%22Chromium%22%2C%22version%22%3A%22114.0.5735.110%22%7D%2C%7B%22brand%22%3A%22Google%20Chrome%22%2C%22version%22%3A%22114.0.5735.110%22%7D%5D%2C%22mobile%22%3Afalse%2C%22model%22%3A%22%22%2C%22platform%22%3A%22Windows%22%2C%22platformVersion%22%3A%2210.0.0%22%7D HTTP/2.0", upstream: "fastcgi://unix:/run/php/matomo.abcd.com.socket:", host: "stats.abcd.com", referrer: "https://abcd.com/"