<div dir="ltr">See <a href="https://jewishaction.com/religion/jewish-law/whats-the-truth-about-saying-g-ds-name-in-the-course-of-torah-study/">https://jewishaction.com/religion/jewish-law/whats-the-truth-about-saying-g-ds-name-in-the-course-of-torah-study/</a> for a summary of poskim about saying God's name in various contexts (learning, berachot, and zemirot). It seems like the consensus of poskim is to allow it. Regarding RSGanzfried himself, he writes in Kitzur Shulchan Aruch 6:3 "וְזֶהוּ מִכְּלַל הַיִּרְאָה שֶׁלֹּא לְהַזְכִּיר שְׁמוֹ הַגָּדוֹל כִי אִם בְּדֶרֶךְ שֶׁבַח וּבְרָכָה בְּמַה שֶּׁהוּא מְחֻיָּב אוֹ בְדֶרֶךְ לִמּוּד", which seems like he permits it.</div>