Generally speaking, envy, resentment, and self-pity are disastrous modes of thoughts.Self-pity gets fairly close to paranoia, and paranoia is one of the very hardest things to reverse.
Every problem in mathematics is a puzzle waiting to be solved, and the joy is in the solving.
In the quest for understanding, failure is not the opposite of success; it is a stepping stone to it.