The stationary phase method with an estimate of the remainder term on a space of large dimension