If you're loosing all power, you have an electrical fault, not a PATS problem. PATS can't turn off all the power to your vehicle.
You most likely have a loose or poor ground connection, probably somewhere near the battery as well. You might also want to check the large positive cables going to the power distribution box.
Disconnect, inspect, clean, and tighten every ground and positive connection you can find.
Another fairly common problem is the General Electronics Module or GEM. It controls many electrical aspects of your truck, and they are somewhat prone to failure. You may want to look into that.