So, safe mode doesn't help. I realized it happens only with 5x lens. And only if part of the photo is sky and part is land. Squares are in the sky.
I used another app, but I think it never switches to zoom lens, so is OK. If anyone knows an app that uses 5x lens, let me know. Dots are random...