AITA for yelling at my partner for driving erratically?

My partner and I were in the car driving home from the store, and we were on a long stretch of road with no other cars aside from us. Like twice in the last 10 years of our relationship, he thought it would be funny to violently swerve the wheel back and forth (again, no other cars or people on the road).

This last time was 2 days ago, and he decided to swerve the car as “a joke”, a joke he knows I absolutely hate and do not find funny. There was no warning, we weren’t arguing prior, we were just silently driving. He suddenly jerked the wheel back and forth on an empty road, and I hit the side of my head on the thing that hold the seat belt. I wasn’t bleeding, but I was absolutely pissed.

I yelled at him for being an irresponsible driver and for making me hit my head. He then got all defensive about it, saying it was just a joke and that I was overreacting.

This has only happened maybe twice in the last 10 years.

I can’t sleep, I’m tired and this is keeping me awake.