Hey! Thanks for reaching out. I can understand it becomes really difficult to cope with past traumatic event but one way of not letting it affect is, first of all, accepting it, that it has happened and now you can't go back and fix it. You are wiser now to not repeat that mistake.
Try to focus on your present and outgrow that feeling. don't blame yourself and be kind to yourself. It ain't your fault.
Disclaimer:- Nature of all the advices provided on this platform including Expert’s are for general information only because complete detailed clinical work up of individual not done. These advices in their all aspects are not substitute for Professional Medical Consultation and are not valid for MLC (Medico-Legal cases). All individuals are advised to consult nearest specialists.