Spoilers for NieR:A
The most likely connection is Hydelyn is in the same universe as Earth but are not the same planet or Earth being a shard etc. Ending D of NieR:A has 9S go with machine lifeforms on a rocket to outer space, this is the most likely way to connect the two but it is a Yoko Taro crossover and anything could be possible with him at the helm.