Commandments are ways for us to learn doctrines by living them. Keep yourself in a growth mindset by looking for new things to learn and stop beating yourself up about things you don't understand yet.
We are blessed for living commandments, but not always in predictable ways. When we don't get the blessing we were counting on, we may blame ourselves or Heavenly Father. Using commandments to connect with Heavenly Father, however, will always bring us the blessings of His presence and we will have joy and peace regardless of other circumstances.