Load node by value of a field and update value for another field
Thanks to the comment by @No Sssweat I realized that I simply needed to specify a content type:

$nodes = \Drupal::entityTypeManager()
      -&gt;getStorage('node')
      -&gt;loadByProperties(['field_one' =&gt; $fieldValue, 'type' =&gt; 'CONTENT_TYPE']);