Version: Adobe Photoshop: 24.4.1 20230418.r.449 53a6c60 x64
While trying to use the eraser or brush tool it will show this white squares and hide everything behind them, as you move the tool the squares get bigger or more of them appear on screen. The squares would disappear if you hide the layer but will appear again when using the tools.