Modular D3 equations and spectral elliptic curves