Error executing logfile maintenance:org.sqlite.SQLiteException: [SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)

Hello, I was looking in the wrapper file of the logs and seen i was getting thousands of the same error which refers to sqlite being corrupt but its very confusing because im using microsoft sql for my database, other than i think the sample tags use this.
I seen one related post on these forums which said to delete the system_logs.idb file and restart the gateway the file itself is actually 36gb so obviously there is a problem will deleting it be a long term solution or will these errors keep piling up again what have i done to cause this?

(sorry if the title isnt ideal i thought it might help people googling the same problem)

To follow up, deleting system_logs.idb seems to have stopped the onslaught of errors