Using the Canon Service Tool v4720 to reset a printer you own is in most countries under "right to repair" laws. However, Canon does not endorse it. The tool is copyrighted, and distributing it may violate Canon’s EULA. That said, thousands of users have safely used it without legal repercussions.
: Canon MG2400, MG2500, MG2900, and E400 series.