Some window regions are not repainted after resume from suspend

I use Linux Mint 21.1 Vera with kernel 5.19.0-32-generic, and NVIDIA dlloader X Driver 525.78.01

When I resume from suspend, some select window regions are not repainted and are nearly blank, like the current track visualization of the Soundcloud webpage or the view section of KiCad. If I reload the Soundcloud webpage or pan in the view section of KiCad, these sections get refreshed, but this issue is annoying nevertheless.