I've got this issue too, sometimes relogging into the world works sometimes, and other times not. But restarting the game is the best way to fix it.
There doesn't seem to be a clear cut way of getting it to bug out though. When i start my game i try using a spear and if i see a white crosshair in the middle
i know that will bug out the projectile. The projectiles that are stuck in midhair persist even after restarting and "resolving" this behavior, though you can unstuck
these by building blocks into it (dirt or whatever). that makes it "hit" the block and then you can collect your spear or arrow back.
Here are the mods i'm running now.
That's all i know in my case.