Glad you're okay.
This line in your post caught my eye:
I remember not wanting to go wide because there were parked cars on both sides of the road and not enough room on the opposite side for a car to pass without going over the center line.
It seems to me that this is a common feeling among inexperienced riders. Ooh, I must stay as far right as possible so I don't "force" a car to go into the oncoming lane. And what you've done is endanger yourself rather than possibly inconvenience an overtaking driver for a few seconds.
A valuable lesson to be learned here. I'm glad you've only got a few scrapes and you're not dead. Keep riding!
.