K1 Max filament sensor triggers incorrectly

As the title says. My K1 Max started today triggering random “Ran out of filament” alarms, hence stopping the prints all the time.

I couldn’t find anything related to it anywhere, tried re-run the filament through it several times to see if maybe something was messing with the sensor but it keeps hapenning.

Any idea of what this may be caused by and how to fix it?