In stmt.lua in the bind function on line 306 there is a call to format outside of the error call.
error("sqlite.lua error at stmt:bind(), failed to bind a given value '%s'. Please report issue."):format(v)
This ends up printing the literal "sqlite.lua error at stmt:bind(), failed to bind a given value '%s'. Please report issue." without the %s substitution.
Suggested fix
error(string.format("sqlite.lua error at stmt:bind(), failed to bind a given value '%s'. Please report issue.", v))