The California district reported it lost 6,000 students since the 2017-18 school year as birthrates decline and the Bay Area’s cost of living goes up.