You need to equip pumpkin head so many times until it's the head that got swapped
you need to wait because it's a location the endergirl will teleport randomly
You need to open the box