My electrical box randomly makes a loud clicking/banging noise that
Loud clicking in an electrical panel without power loss often indicates a breaker or relay cycling. Inspect breakers for looseness or signs of wear, as thermal expansion can cause noise.