Not able to access the Web UI after 1-2 hours of inactivity

I am new to Home assistant and facing an issue in getting the WEB UI after 1-2 hours of inactivity on WEB UI i.e. I have to unplug the power from my raspberry pi 4 in 1-2 hours and power it again in order to get the WEB UI again.

Also, raspberry pi 4 is showing connected in my router during this time & I have also assigned the static IP to it.