Check_MK discovery is flapping and Timed out

I have the same problem and it is repeated a lot in the forum.

Here’s a possible solution that I haven’t tried yet: