Constraining neutrino interaction uncertainties for oscillation measurements in the NOvA experiment using Near Detector data