I never go out expecting NOT to make a mistake. It's part of life and definitely part of refereeing. I just go out trying to do my best and with time and experience you will get better.
When you do make a mistake, it's important not to dwell on it at the time. Box it off in your head, refocus...