You can put it in the frunk which pops open via the release in one of the previous posts.
Had this happen to me recently with our 2018 X. Was told by tesla support if I could find a donor battery I can at least open the door and drive somewhere once. They replaced the battery under warranty...