One thing that could be (but I may be totally off) may be an IP address problem.
For example my bitcoin.conf contains
rpcbind=127.0.0.1
rpcallow=127.0.0.1
and I've read that
If you rely on a Linux distribution to have an IP address in the same network as your host machine, you may need to set up a workaround in order to run WSL 2.
That same page also tells about "strict memory requirements" which may or may not be a problem.