Nucleon generalized form factors and sigma term from lattice QCD near the physical quark mass