When your nether coordinate is greater than 3750000, /execute in overworld run tp @s ~ ~ ~ will say "invalid position for teleport"
Steps to reproduce:
1.run the command:
/execute in the_nether run tp @s 4000000 128 0
2.Then run the command:
/execute in overworld run tp @s ~ ~ ~
Observed result:
It will say "Invalid position for teleport".
Expected result:
You will be teleport to the world border in overworld or (29999999,128,0) in overworld.
Notes:
Change overworld to the_end will also cause this,