Stochastization and spreading of wave trains in an oscillating potential