On certain linearized polynomials with high degree and kernel of small dimension