All good advice.
These things happen. You have done the right thing. You'll learn from it and whilst it feels absolutely terrible right now you'll look back and have gained valuable experience.
An occurence like this doesn't make you a bad pilot, in actual fact the way you are dealing with it has already made you a better pilot. Taking responsibility shows you're just the kind of pilot a company would/should want to employ.
I know from experience (2 bent crossbeams whilst showing a student how good/bad I was). I learnt a lot and I still have a job, at the moment anyway!
Climb back on and good luck in your career.