WSL Ubuntu bash: The operation timed out because a response was not received from the virtual machine or container
A faster solution than a full PC restart is to run:
wsl --shutdown
...which will restart just the WSL service.
This question is a bit different in terms of the symptoms but its solution solved this problem: A full reboot of Windows10, by opening Windows > Start Menu > Power > Restart while holding the shift key.