How much is related to people suffering a medical emergency and nobody being around to help? vs. How much is the actual emotional impact of loneliness?
No mistake, almost all of us can refer to an anecdote of an elderly relative dying soon after their spouse. It can be both tragic and, in hindsight, romantic. But really, the consequences of loneliness are often and unfortunately quite practical.
So I guess you have:
bad company < no company < good company
Medical emergencies might be a cherry on the cake - but let's not forget that most diseases are not instantaneous - and sooner these are cached, less harm.