Taraqian, don't beat yourself up. If you handle a gun enough you will fire it off by accident once or twice.
I got a new Taurus and was trying to clean it. I was certain it was unloaded. To remove the slide, you must pull the trigger. (Bad design.)
Well, I followed the rule that says "always point the weapon down range in a safe direction." That's how it was taught to me years ago.
A little bit of spackle fixed the hole in my screen door, but my hearing was poor for about 4 days.
Except for my wife, everyone in my family who was directly above me argued there was no gun shot. The neighbors heard and knew it was a gunshot, but shrugged it off. It was a 9mm +P.
My wife asked, "Where's your father?" She came down, saw what had happened, and shrugged it off. I do love my wife!
But it can happen. I didn't sleep for three days worrying about it, but think of all the accidents you've had with every other tool you've used. Follow the rules of safety, and the accidents will be relatively harmless.
Glad you are safe.