“Ordeal in Space” by Robert A. Heinlein is the story of a man who becomes a hero of space when he is called to repair a spaceship and the aftermath of that event.
The fear of heights and open space is so strong that he tries not to even be in the open air on the street. In general, it is possible to live with this, and he even somehow adapts, changing his job, environment and lifestyle.
But staying at a friend's house, he hears a cat meowing outside the window of a high-rise building …
This is a link to the text of the story:
https://litlife.club/books/126598/read?page=30&