I didn't have to have any surgery but it was close
By your own description, that is not correct. It was not even in contemplation.
They merely provided information on when that intervention would hypothetically necessary.
Understandably you were panicked, but you need to separate out your thoughts, your feelings, and the facts.
Your extreme and inaccurate thoughts are causing you to feel afraid -which is then causing you to selectively interpret the facts, which then causes more extreme and inaccurate thoughts, which then makes you more afraid.
Searching out more facts to selectively interpret will not help.
Address those unhelpful thoughts, and you will be able to feel calmer and safer.
You felt frightened and distressed, but you were in fact safe.
You were scared about needing surgery, but in fact you did not need surgery and did not come close to needing surgery.