Usually one of these:
Media loading - if not straight, media will lift off the sensor and give error.
Dirty sensor, sensor needing adjustment, or printing on the back of the roll triggering sensor.
Temporarily, you can cover the sensor.
But you will want to find the cause.