Why 'Attempt to load a function from a different Lua VM' error happens and How can I deal with it?

I called a function inside the metatable via module script when the server is about to close.

Then error 'Attempt to load a function from a different Lua VM ’ occured.

I assumed whether the metatable got collected by garbage collector but it was able be to print lol

What even is the error?