I hope you get better soon! This sounds very serious since you could've accidentally (or intentionally) ended your life. I'm with everyone else on suggesting that you should see a professional ASAP since next time.. who knows?
You'll figure out what's best for yourself.