If he had gross income of $5,050 or more in 2024 then no one can claim him as a dependent under the Qualifying Relative rules,
He cannot be claimed as a dependent under the Qualifying Child rules since he is age 24 in 2024.
You would have to file as Single sine he is no longer your dependent.