>>2719779you get used to it, I live in the dolomites and as a kid I was really scared of big heights and refused to get too close to ledges, but through gradual exposition I got used to it and now I have no problem doing basically any via ferrata. Risky passages without safeties still give me some problems though, I get an unpleasant adrenaline rush that makes me feel less steady, but over time I'll get over that too.
No other way around it, you just have to conquer it step by step (without taking unnecessary risks), as
>>2719807 said start with indoor climbing and also go on trails that are walkable and safe but that expose you to increasingly steeper and taller drops.