A study found that younger people were more susceptible to changes in personality traits during the COVID-19 pandemic.