Glad you did not suffer any serious injuries. But...., I disagree with your statement about "Not if, but when...." regarding bikes going down. Growing up I had a number of bikes from my teens into my mid 20s. EVERY ONE of them went down at one time or another, some several times. Then, I didn't have or even ride a bike till I was 62. Will be 70 in July and on my 3rd Harley. None of the three have ever been down (not counting a couple of tip overs).
Let's look at what you told us: You are a new rider, you were going fast in the dark, I suspect you are young, you had just turned out of your neighborhood so obviously you knew that curve was there. Pure "pilot error". So, you obviously need to pay more attention when riding. If not, the next time you go down it might be more serious. I really don't mean to "bust your chops" in this reply. I just want you to realize you may be able to enjoy riding for many more years IF you take it a little easier and pay more attention--especially while you gain experience.