The Mets’ Jacob deGrom was pulled after only 40 pitches and one strikeout due to a hamstring spasm he said he first felt in his previous start.