I have a compromised immune system. I have a close relationship to my two adult sons who still live with me. I don't like strangers touching me.
Historically, humans lived in small, close-knit family units or small villages. The human mind is optimized to deal with a social group of about 150 people, not a city of thousands.
A lot of our loneliness and similar problems could be largely resolved if we returned to a pattern of small, close-knit communities as our norm and we could improve germ control at the same time.
It's a general human norm that most cultures promote a long-term, monogamous relationship as the standard. Sex is vastly less dangerous if two people are only intimate with each other and neither of them sleeps around.
Reducing casual social contact in no way means we simply can't get our social needs met. It can mean the opposite. It can mean a return to meaningful social bonds instead of casual hookups from grinder.