Space being made in Sheol for the dead is spoken of as if the dead were given beds to lie on. Alternate translation: "They gave beds to Elam and all its people" (See: [[rc://en/ta/man/translate/figs-metaphor]])
The word "pierced" here is a metonym for "killed." This can be translated in active form. Alternate translation: "their enemies have killed them with swords because" (See: [[rc://en/ta/man/translate/figs-metonymy]])