Consensus in the community is that Lua(JIT) sandboxing must be done on the process level.
Even with the debug library stripped and other safeguards against (inner) evaluation taken, the trivial DOS of `while true do end` remains.
If that happens, you want it to live in its own process, or at least its own thread.