I have discovered an extremely strange bug

A black square engulfs the game and only emmisive materials can be seen, does anyone know why this is? (Unity HDRP) Im pretty sure its a Unity issue. It also happens only rarely.

ezgif.com-gif-maker (6).gif