“I will keep your law continually, forever and ever.”
The Psalmist here is not saying that he will keep God’s law perfectly. His focus is on the constancy of His effort. We will all inevitably fail at keeping God’s law. None of us can obey perfectly, but the believer is marked by turning back to the Lord after stumbling.