Our brains are hardwired with an evolutionary survival mechanism designed to prevent dangerous falls.
"Healthy fear" keeps most people cautious, bur extreme and irrational version is called " acrophobia " or fear of heights.
The feeling of dizziness or instability at heights often comes from sensory mismatch.
On the ground, our eyes use nearby objects to help maintain balance. But at a height, visual reference points are too far away.
This makes disorientation in brain.
What happens at heights is, our inner ear senses we are standing still but our eyes sees a vast, distant space.
This leads to HEIGHT VERTIGO, which the brain interprets as IMMINENT DANGER !!!!
A bad fall or near miss incidents in the past programs the brain to associate heights with fear.