handle overflows when relocating heap offsets