This seems to me as a problem with storage, hardware/driver related. The core network stack is then still working, but everything else that uses storage stalls.
You would need to raise the kernel loglevel to 7 and connect a serial console cable. Then you will see if for example if filesystem goes read-only due to crash in USB3 driver. I had that several times with my Pi4.