To answer your question on whether it was about generational curses. As you suggested yourself, no, it has nothing to do with generational curses, but not for the reason that you mentioned though.
So although God promised mankind that He will repeal the law of generational curses through his prophet Jeremiah: Jeremiah 31:29-30 In those days people will no longer say, The parents have eaten sour grapes, and the children’s teeth are set on edge. Instead, everyone will die for their own sin; whoever eats sour grapes – their own teeth will be set on edge. This is what God promised in the days of Jeremiah and very soon after the promise, those days arrived…
God did declare that He has fulfilled this promise in the days of Ezekiel, but, people still believe in generational curses. Ezekiel 18:20 The soul that sinneth, it shall die. The son shall not bear the iniquity of the father, neither shall the father bear the iniquity of the son: the righteousness of the righteous shall be upon him, and the wickedness of the wicked shall be upon him.
Read the whole chapter of Ezekiel 18 and you will see that the promise made in the days of Jeremiah was indeed fulfilled in the days of Ezekiel. God was surprised that the Israelites were offended by this. See Ezekiel 18:19 Yet say ye, Why? doth not the son bear the iniquity of the father? When the son hath done that which is lawful and right, and hath kept all my statutes, and hath done them, he shall surely live. So just like today (people still believe in generational curses although that law was repealed in Biblical times) the Israelites also failed to stop believing in generational curses, which caused God to ask them why they still believe in it. “Have I not promised you that I will repeal this law”? is the question that He actually asked them in Ezekiel 18.
So even today, people still refer to Scriptures about generational curses which were recorded in the Bible before Jeremiah and Ezekiel and they ignore the Scriptures that came after those Scriptures that they so zealously use to support their false doctrines. They refer to old laws that were legally repealed by God and still apply them to people today. They don’t do that with other Scriptures like the one about “an eye for an eye, a hand for a hand and a tooth for a tooth” which was also repealed.