When I create a vector mask or we I create some vector shapes, I have strange rectangles that appear and disappear as I zoom in and out. The problem is the rectangles make their way to the final photograph or image. Here is an example with and without the strange rectangles.
Which version of Ps you are working with? What is your PC Specifications? It apperas in the final output when you save your image? If not, check your Graphic Processor and try to disable the Use Graphic rocessor from Edit>Preferences>Performance and see if it is stil exist.