Have you tried calling :erlang.garbage_collect() at the end of whatever function you’re having Quantum run?
:erlang.garbage_collect()