GPU requirements increased in version 22. A card that used to work may no longer be up to it, and the increased requirements may also expose latent driver bugs.
Buggy video drivers has been the curse of Photoshop ever since computer games were invented. That's where the GPU manufacturers' priorities are. Go to the GPU manufacturer's site and update the driver. If Nvidia, make sure to use the "studio" driver, not the "game ready" driver. When you install it, check "clean install", and install only the basic driver. Deselect all the extra components.
FWIW, I haven't had a GPU problem in Photoshop for as long as I can remember (Nvidia Quadro), it works perfectly, instantly and reliably. There is one currently open Lightroom bug that causes excessive VRAM usage, and that in turn can spill over with minimal symptoms in Photoshop. That can be bypassed by unchecking "use GPU for image processing" in Lightroom.
Then it occurred to me that it might be the latest Photoshop upgrade (automatic) that caused the problem.
After quite a lot of Internet search I found out that I could downgrade to 22.1.
You can turn off automatic upgrades in the Creative Cloud app. When you do a manual upgrade there is a checkbox to keep the previous version, which is a good idea until you know that the new one is stable and also that it will work on your system, as system requirements might change with a new version.