You could do a peek and throw exception:
map.values() .stream() .peek(a -> { if (stringToBeMatched == a.getField()) { throw new RuntimeException("Expecting field to match: " + stringToBeMatched); } });