Hello,
According to the specifications, "Mac OS is not supported":
https://asia.canon/en/consumer/pixma-g2010/specification
Only Windows drivers appear to be available:
https://asia.canon/en/support/PIXMA%20G2010/model
As an experiment, you could perhaps check whether Mac drivers for another model in the series, such as the G2000, possibly would work.
https://asia.canon/en/support/models?series=31&category=11&range=5
https://asia.canon/en/support/PIXMA%20G2000/model
It is often a good idea to reset the printing system between tests.
Reset the printing system on your Mac to solve a problem – Apple Support (UK)
Add a printer to your printer list so you can use it on Mac – Apple Support (UK)
As always, make sure that you have backup copies of all important files
before testing anything. Software conflicts cannot be ruled out.