EFT interpretation of XENON1T electron recoil excess: Neutrinos and dark matter