Let the Ghosts Out (Formely known as Phantom Process Retainer) is a Magisk Module that aims to disable Phantom Process Killer, implemented on Android 12.
Phantom Process Killer may mess with apps like Termux, Tasker, Andronix, Debian NoRoot, McAfee Antivirus, etc...
Paste the following command on any Terminal Emulator
su -c /system/bin/device_config get activity_manager max_phantom_processes
If the terminal displays 2147483647, then it worked!