The 49ers fell 29-27 to the Los Angeles Chargers despite a fourth-quarter comeback attempt in C.J. Beathard's first start in place of the injured Jimmy Garoppolo.