Don’t host services with termux, it’s not made for that and nobody checks for termux related things. If you really want to host on an android device, look into chroot environments or virtualization. Generally, avoid hosting on android, in my experience at least.
I only use headscale. It just works and does not complain.