Take out your lua project on one of your server, run for a week..see if it still happens.
If it does, let us know, and give us further errors.
Even if it's not your 'hack', your 'hack' is causing the spam, or at least the error message.
Extremely difficult to tell what's really going on if your code is taking over error messages or injecting it's own messages