On the Canon MG5320 Printer, you can see a button or icon for Setup. You can enter the settings of the machine through it. Then look for the Reset Setting option here. This should help you quickly reset your device.
You can also do so via more methods such as the ones described here: https://www.errorsdoc.com/canon/how-to-reset-canon-pixma-printer-ink-cartridge-factory-settings/