Today, a good chunk of the BiggieSE codebase is using nested pointers which is prone to generate issues. The code should be refactor to avoid using unnecessary pointers and to rethink our strategy when swapping trees to avoid dangling pointers.
Currently cloneCollectionAsCapped is a victim of this issue and should be fixed once the work surrounding this ticket is done.