The Sword of the Spirit in Ephesians 6:17 is the Word of God, specifically the Torah, Writings, and Prophets of the Old Testament, the only Scriptures that Paul had. The written word is the most powerful weapon of God's Spirit, and God doesn't contradict himself.