I understand, but the OEM lights are expensive. Granted, hitting a pedestrian is probably more expensive
Even relatively minor damage to your car can cost hundreds to repair, but property damage would be the least of your worries.
A few years ago I was doing something embarrassingly stupid and hit my nose. I went to the hospital because there was a gash on the bridge of my nose that wouldn't stop bleeding. An X-ray showed a hairline fracture that didn't require realignment. They gave me three stitches and a prescription for pain killers. It cost my insurance company $900. This is already double what it would cost to replace both of the OEM headlamps on your Corolla.
A friend of mine was riding his motorcycle at about 45mph when a car turned left in front of him at an intersection with no time for him to react. He struck the side of the car and was catapulted up and over and hit the pavement a significant distance away. Despite sustaining several massive life threatening injuries, he survived. The doctors and nurses all told him afterwards that they did not expect him to live. All told, his medical costs came out to around $800,000.
So if you hit a pedestrian at night because you couldn't see him due to your headlamps being in poor condition, what do you reckon it's going to cost you? Even assuming your insurance policy covers the entirety of the medical costs (and it may not - check your coverage limits!), insurance companies tend to dislike having to write 5 or 6 figure checks and they'll express their displeasure by jacking up your premium. And let's not even get into lawsuits...
Also, your car is eight years old. If you put off replacing the headlamps now, in a couple of years you may find new OEM headlamps harder to come by and would cost you more because of it. The OEM's don't keep manufacturing spare parts forever.