I had already modify the ram allocation on advice of another player with the same issues, but he had advised me to put min and max values "-Xms6144m" and "-Xmx8192m". It did seem to lessen the number of crashes but they kept happening. This is my .json file. Should i modify it to exactly "-Xmx6g", and remove the xms line ?
I just encountered this bug today. After fiddling around I found that closing the window and reopening it can temporarily fix this bug. You have to grab the corpse by torso though. Hopefully this helps!