Its a common bug known for a long time, its not completely fixed, but its being worked on. He haven't fixed it yet but it's slowly getting improved and better. If you want it to get unstuck, you can rotate the sword out of it being stuck. It's a little wonky to rotate but it works. You could also tap right click to edge it towards you, this usually only works if you rotate it first to get half of it above ground then tap right click.