West Ham United's record-breaking 17-match unbeaten run in Europe came to a disappointing end against Olympiacos after crashing to a 2-1 defeat on Thursday night.