my router freezes after i start mosquitto

Hi everyone. I have a problem with mosquitto installed on my raspberry, I start serviIo and everything works, but after a while everything works, my router locks up, the internal network works, but I can’t surf the net and I can’t access the page anymore router configuration to restart it, I can only turn it off, after a few minutes everything works … and then the usual problem. what can I do? what do you suggest?