While actively parking, my car accelerated and slammed into a wall an arm's length away. The collision was impactful enough to cause my seatbelt to engage and slam into my sternum. While attempting to turn off the car, the computer system glitched, engaging all three different drive modes (N, R, D). The breaking command I gave the vehicle was ignored, and the vehicle accelerated into the parking garage wall. No front collision assist or safety feature engaged. The vehicle is currently at a repair shop with the damage cost totalling $17K. The MFR recently inspected the car in Decemeber when the lease expired and I purchased the vehicle. Prior to that in October, the car came to a full stop and turned off on the highway.