I expect that, to the extent* to which there’s a correlation between loneliness and intelligence, it is mostly because very smart people are unusual. So, if everyone was smarter, they’d just be normal and happy.

*(I could also be convinced that this is mostly just an untrue stereotype)