Ssh doesn't work after some time connected via wifi

That is true, I have tried doing the dietpi-config connection test and it seems that it is connected to the internet but I cannot access it in any way (web or ssh). The wifi monitor service is active and I cannot find any suspicious messages in dmesg or journalctl, at the time of disconnection, only these messages appear, attached screenshot.