Mistakes are inevitable in projects that are new, complex, or complicated.
We can try reducing their occurrence. But it is hard to avoid them.
Best to expect them / make an allowance for them and not waste time being surprised or disappointed when they eventually happen.
The lesser the drama, the more we can focus on a creative, constructive, and corrective response.