All your modules are either priority 1 or priority 4. When you exceed 100% power usage (usually when you deploy hardpoints), this causes important systems, like your FSD, to turn themselves off. There are other priority levels, like 2 and 3 (that's the mistake you're making with the priorities). These will obviously be prioritised over 4 when your hardpoints are deployed.
Change the priorities so critical systems are 1, defensive systems are 2, offensive systems are 3 and cargo hatch, vehicle hangar, fuel scoop, FSD booster and AFMU (these systems are just gravy on the meat and potatoes) are priority 4. If you have problems with power using an FSD booster, make that 4 and everything else 5. That might stop it being switched off at the wrong time, but priority 5 is, in my experience, only really necessary on extreme edge-case builds.
- Critical systems: thrusters, FSD, sensors, life support - you can still escape if everything else is off.
- Defensive systems: shield, shield boosters, chaff, heatsinks - these will help you escape as they will prevent your core systems going down.
- Offensive systems: your guns - these will protect your defensive systems as long as you blow up your opponent before they get your shields down and attack your power plant.
- Gravy systems: everything else. If you're in combat, these systems basically don't matter and should be off.
Your ship will work just fine with cargo hatch and vehicle hangar as priority 4, but it's good practice to consider how critical your systems are. Priority 1 and 2 systems are the ones that keep you alive. Priority 1 systems are the ones that should never go down, even when your power plant has been taken out and only produces 40% of its full power.