Tax Year Prior to 2020: 1099 Q and dependent status

Hello-

I received a 1099 Q for my son, who is a freshman. He spent 8 months at home last year. The 1099 Q lists him as the beneficiary.  All the proceeds from 529 plan mentioned on the 1099 Q were used for qualified expenses. If he had > $5000 in income as mentioned on the 1099 Q, can I still claim him as a dependent. If I do not claim him as a dependent, do he need to file a tax return? Thanks.