The issue you linked is more or less resolved at this point. If you find Termux processes being killed, just run this command over adb shell and you're good:
settings put global settings_enable_monitor_phantom_procs false
Google added this setting in response to a bug report submitted by a Termux maintainer. It's also persistent, so you only have to run the command once.The more pressing issue at this time is: https://github.com/termux/termux-app/issues/2155