I'm having this issue where substance painter glitches out when I switch off layers and when I paint. It comes up with this black glitch thing sometimes all over my mesh and sometimes it remove the texture that I have on my mesh. I have to hide the layer then unhide the layer to get everything back.

This is a really annoying issue and would appreciate someone who could tell me why it does this and how I could fix it.