There is another recent discussion happening in this thread: FreePBX 16 fail2ban log - #15 by lgaetz
The take away there is that it’s possible that the system was configured to be exposed to any and all traffic and malicious traffic was causing the logs to be full. Start by ensuring that only trusted traffic can connect to your asterisk system.