As of 2025, for Windows DBeaver 24.1.5, the Word Wrap toggle is in the top pan button "Window" > "Editor" > "Toggle Word Wrap":
link to image screenshot, but it looks like the answer by Codistan from Apr 27, 2023