Go to Settings > Options > Processing and under General change to Ignore features with invalid geometries.

[![Processing Settings][1]][1]

Alternatively, it's also worth checking [the answer by A.Oikonomidis](https://gis.stackexchange.com/a/297898/9839) as well as other tools available in the processing toolbox to fix invalid geometries in the original dataset.

  [1]: https://i.sstatic.net/RgW6p.png