Primordial black holes and gravitational waves from resonant amplification during inflation