Smoluchowski-Kramers approximation and large deviations for infinite dimensional non-gradient systems with applications to the exit problem