Don't use "memory booster" apps. They cause more problems than they claim to solve. Let the Android system manage RAM on its own.
Just to be clear, when you say it works fine in Airplane Mode, do you mean it doesn't randomly reboot? But when you turn off Airplane Mode, it does randomly reboot?
You shouldn't need to connect to a computer to do a factory reset. Since you already tried a factory reset, and the problem still happens, it's almost certainly a hardware problem. I'm not sure it's worth continued efforts to try to fix.