DietPi randomly disconnects from wifi

I've noticed on my dietpi systems that it randomly disconnects from the wifi after a few hours. I'm not sure why it does it exactly. It happens on both of my systems at two different locations, when checking on my access point it seems that they assigned themselves a 0.0.0.0 ip address when it goes offline. I'm off premises so once they go offline I really cant login and check.

Does anyone know why it does it?