Many cars don’t appreciate having the brake and throttle peal pressed at the same time. It’s partly a response to cases of pedal error in the USA many years ago ...
I have had the accelerator in my 2022 Jeep Compass Trailhawk become unresponsive whilst driving on a number of occasions. The dealership just says it’s my fault and the codes logged say operator error ...