I notice that the people who tend to be pessimistic more often than not are those that don’t have much direct exposure to technology (whether through work or interest) in their daily lives.
I personally would be somewhat pessimistic as well if not for technology (energy generation/storage and AI primarily in terms of resource creation, though improved AI without a corresponding implementation of some form of basic income would be worrying).