BERKELEY, Calif.—The 19-year-old son of a former YouTube executive died last week at the UC Berkeley campus where he resided, officials and a relative said.

YouTube CEO Susan Wojcicki speaks onstage during the YouTube Brandcast 2018 presentation at Radio City Music Hall, in New York City on May 3, 2018. Noam Galai/Getty Images