Grayed out tabs

Hi,

Every once in a while one of the tabs goes blank (see attached) and I have to restart my computer or force quit the finder.

Any idea why this happens?

PS I just formatted my computer and I’m still getting this bug.

Thanks for your help!