Thankfully the break overrides the acceleration, and I imagine a driver's eventual instinct will be to hit the break - and once they notice the vehicle decelerating they can stop panicking.
The TikTok video[1] that originally showed off this issue noted that he was able to stop because the brake overrode the accelerator. He was then able to set the truck to "Park" using the touchscreen while he figured out what happened.