Go to Settings > Options > Processing and under General change to Ignore features with invalid geometries.
Alternatively, it's also worth checking the answer by A.Oikonomidis as well as other tools available in the processing toolbox to fix invalid geometries in the original dataset.