In fact, they should happen. They’re the best teachers.
As long as you pay attention.
Don’t be too proud to allow yourself to make mistakes. Don’t wallow in them either.
Do the best that you can, and when you make a mistake learn from it.
That way, you’ll do even better next time.