Constraints on Sub-GeV Dark-Matter-Electron Scattering from the DarkSide-50 Experiment