St Gallen endured a chastening visit to Spain as they were crushed 5-1 by Valencia and were overtaken by them in second in Europa League Group A.