We derive estimates on the magnitude of non-adiabatic interaction between a Hamiltonian partial differential equation and a high-frequency nonlinear oscillator. Assuming spatial analyticity of the initial conditions, we show that the dynamics can be transformed to the uncoupled dynamics of an infinite-dimensional Hamiltonian system and an anharmonic oscillator, up to coupling terms which are exponentially small in a certain power of the frequency of the oscillator. The result is derived from an abstract averaging theorem for infinite-dimensional analytic evolution equations in Gevrey spaces. Refining upon a similar result by Neishtadt for analytic ordinary differential equations, the temporal estimate crucially depends on the spatial regularity of the initial condition. The result shows to what extent the strong resonances between rapid forcing and highly oscillatory spatial modes can be suppressed by the choice of sufficiently smooth initial data. An application is provided by a system of nonlinear Schrödinger equations, coupled to a rapidly forcing single mode, representing small-scale oscillations. We provide an example showing that the estimates for partial differential equations we derive here are necessarily different from those in the context of ordinary differential equations.