macbook pro – Quick Look pops up when switching desktops

When switching between desktops, sometimes Quick Look pops up all by himself. Even when switching for a desktop containing a terminal, Quick Look pops up for a path that might be in the terminal’s output. It is very annoying.

Someone knows how to solve this?

I’m currently using Catalina v10.15.5 on a 2016 MacBook Pro 13” Touch Bar.