Well that function is carried by what is known as a “inertia crash sensor” and is part of the security system. It will operate when a vehicle receives serious bump as in a crash or even a significant pot hole, then switching the hazards on and unlocking central locked doors, if locked.
The sensor activation requires a manual reset, so as yours doesn’t suggests your vehicles system has a fault, perhaps a simple wiring issue, perhaps its gone over sensitive as inertia sensor can, if so then repair is by replacement of the whole module not individual components.
So if possible have a diagnostic test on the system.