The stabbings occurred about a block apart in Manhattan’s Upper West Side, law enforcement sources said.