I know the solution for this problem is to truncate the table, but what is the reason it gets full in the first place? I'm seeing about 18,000 rows in the table, which seems to be far more than usual.
I think you're right about a massive amount of bots because most rows in the table had user_id 0.
I see others have suggested (in this thread) to convert the table (and all other tables) to InnoDB. Do you think this would be a better solution than increasing max_heap_table_size?