You can try a way to contact like Messenger Kids or Roblox.
I also had this happen a lot. At the end of kindergarten, my best friend moved to Italy. We don’t have a way to contact :(
And in 3rd grade, one of my friends from 2nd grade moved to online school. Although we can still contact by Messenger Kids and Roblox :)