Its a matter of luck they survived the snap

The half of the universe killed has gone and the other half was their in that other half of the universe the Valkyrie and korg was their. And also said by the @Kuch it is luck

Yeah and thor would have found them when he reached earth