Life is a school and you are here to learn; pass all your tests. Problems are simply part of the curriculum that appear and fade away like algebra class, but the lessons you learn will last a lifetime.
You can't fail life as long as you learn from your mistakes and keep trying. If you fall seven times, get up eight. When you think you don't have the strength to get up, look to God in prayer. He will lift you.
It shall remain with him and he shall read it as long as he lives, so that he may learn to fear the LORD, his God, and to observe carefully all the words of this law and these statutes,