Ezekiel 18 is talking about the second death judgement. The only happen when all of mankind stands before the Lord in the Great White Throne Room, to be judged and as Ezekiel 18 states, people are only judged for their own sins and not the sins of their children or their fathers,
The Exodus 20:4-7, 34:6-8 and Deuteronomy 5:8-10 all speak of the visitation of the sins of the fathers during the first and second ages of the existence of the Israelites, being visited upon the fathers' children and the children's children in the third and the fourth period of time. The primary sin that God was warning against was continual idolatrous worship. The children's children at the end of the fourth age, will be required to repent of their fathers' sins during the first, second and third age of the existence of the Israelites as well as their idolatrous worship during the fourth age.
In Daniel 9:24, God prophesied through Daniel the Prophet that there would be a period of grace of 490 (solar) years at the end of the second age of their existence, in which they could repent of their transgressions against God. The nation of Israel, during this 490 year period, did not take advantage of God's grace to repent of their transgression. It is my view that the second age of the existence of the Israelites ended in the year that Christ was born. When the Israelites did not repent during this period of grace of 490 years of their transgression, the visitation of the father' iniquities that took place during the first and second ages of their existence was visited upon their children and the children's children during the third and the fourth ages.
Hosea 9 presents a picture of God's punishment upon the Children of Israel.
Hosea 9: - Judgment of Israel's Sin
9:1 Do not rejoice, O Israel, with joy like other peoples,
For you have played the harlot against your God.
You have made love for hire on every threshing floor.
2 The threshing floor and the winepress
Shall not feed them,
And the new wine shall fail in her.
3 They shall not dwell in the Lord's country,
But Ephraim shall return to Egypt,
And shall eat unclean things in Assyria.
4 They shall not offer wine offerings to the Lord,
Nor shall their sacrifices be pleasing to Him.
It shall be like bread of mourners to them;
All who eat it shall be defiled.
For their bread shall be for their own life;
It shall not come into the house of the Lord.
5 What will you do in the appointed day,
And in the day of the feast of the Lord?
6 For indeed they are gone because of destruction.
Egypt shall gather them up;
Memphis shall bury them.
Nettles shall possess their valuables of silver;
Thorns shall be in their tents.
7 The {two} days
[1] of punishment have come;
The {two} days of recompense have come.
Israel knows!
The prophet is a fool,
The spiritual man is insane,
Because of the greatness of your iniquity and great enmity.
8 The watchman of Ephraim is with my God;
But the prophet is a fowler's snare in all his ways —
Enmity in the house of his God.
9 They are deeply corrupted,
As in the days of Gibeah.
He will remember their iniquity;
He will punish their sins.
10 "I found Israel
Like grapes in the wilderness;
I saw your fathers
As the first fruits on the fig tree in its first season.
But they went to Baal Peor,
And separated themselves to that shame;
They became an abomination like the thing they loved.
11 As for Ephraim, their glory shall fly away like a bird —
No birth, no pregnancy, and no conception!
12 Though they bring up their children,
Yet I will bereave them to the last man.
Yes, woe to them when I depart from them!
13 Just as I saw Ephraim like Tyre, planted in a pleasant place,
So, Ephraim will bring out his children to the murderer."
14 Give them, O Lord —
What will You give?
Give them a miscarrying womb
And dry breasts!
15 "All their wickedness is in Gilgal,
For there I hated them.
Because of the evil of their deeds
I will drive them from My house;
I will love them no more.
All their princes are rebellious.
16 Ephraim is stricken,
Their root is dried up;
They shall bear no fruit.
Yes, were they to bear children,
I would kill the darlings of their womb."
17 My God will cast them away,
Because they did not obey Him;
And they shall be wanderers among the nations.
In Hosea 6:1-3 there is a call to repentance: -
Hosea 6:1-3: - A Call to Repentance
6:1 Come, and let us return to the Lord;
For He has torn, but He will heal us;
He has stricken, but He will bind us up.
2 After two days {within God’s timeframe of reference
[2]} He will revive us;
On the third day {within God’s timeframe of reference} He will raise us up,
That we may live in His sight.
3 Let us know,
Let us pursue the knowledge of the Lord.
His going forth is established as the morning;
He will come to us like the rain,
Like the latter and former rain to the earth.
What you have described as a curse is in fact the consequences for israel adopting idolatrous worship practices within God's land that He had given them.
[1] The length of time of a Day within God’s timeframe of reference, within mankind’s timeframe of reference is, within my understanding, a period of 1,024 {solar} years
[2] A “day of the Lord” within God’s time frame of reference has the same duration as “an Age.” My understanding is that an Age has a length of 1,024 solar years in duration.