In my own life I have been guilty of the same failures: I didn't understand why bad things happened in my life--divorce, illness, death, abuse--and I railed against my Heavenly Father, demanding an explanation, saying "I just don't understand." God's persistent reply has been "Trust in the Lord with all your heart, and don't lean on your own understanding." (Proverbs 3:5). When bad times came, I often "did not remember" God's kindness and mistakenly believed that He had turned into a punitive, harsh, and bullying Father Who was punishing me for the bad behavior of my family or myself. Consequently, I committed and justified rebellious acts against God, just as the Israelites did (v 7). The consequences of my own behavior still linger, like ever widening circles in a pond after a stone is thrown into it.
My behavior, my mistakes, and my rebellion, however, are not too difficult for God.
"Nevertheless, He saved them for the sake of His name, that He might make His power known." Psalm 106:8