The freeze happens because the game engine simply can't handle loading that many items at once. Duplicating over a thousand swords overwhelms the system's ability to render and track every object, so it locks up. Keeping duplication amounts modest helps avoid the crash.