This came up on the Official Rules thread after D&D was spoiled, and the conclusion there was that the ice is considered passed at the time the encounter phase ends, so the DS effects ends when Prey takes effect:
It’s based on the same ruling that @ijw473 linked.