How do I prevent this late 2010 IMac Graphic bug ? (Monterey)

How do I prevent this late 2010 IMac Graphic bug ? (Monterey)

Core i3 3,06Ghz 12Gb 1333mhz ram ATI Radeon HD 4670 256mb 500gb Samsung SSD

Author: @Lordnodob