Baryon number, lepton number, and operator dimension in the SMEFT with flavor symmetries