It is fantastic how apologies are able to lift the burden off our shoulders.
It must have felt so tiring working on a huge project and being the leader in that situation. Every one looks up to you to have a plan, and sometimes you are just as lost as they are, but you can't show them that.
At least you apologized to your boss, which is great and he even understood why you reacted that way.
Nice writeup