Error-riddled West Ham lose to Newcastle