Error Code 5100 on Canon printers typically indicates a paper jam or carriage issue. To resolve:
Turn off the printer and unplug it.
Open the printer cover and check for any stuck paper or obstructions.
Gently remove any jammed paper.
Inspect the carriage for blockages and ensure it moves freely.
Close the cover, plug in the printer, and restart.
If the issue persists, consult the user manual or contact Canon support.
Here is the some of the other resource to get the solution: