As the modern world becomes increasingly interconnected and reliant on electricity, generating renewable power, ensuring reliable distribution, and adopting an energy-restraint lifestyle at both individual and societal levels will be crucial for maintaining global stability. Therefore, designing effective energy storage solutions combined with resilient energy management frameworks is highly valuable; however, many existing studies isolate the human behavioural element. Although human conduct may have a negligible effect in massive industrial facilities, its influence is critical and cannot be ignored in residential neighbourhoods. To address this, the current study introduces a novel, adaptable population dynamics model drawing on epidemiological techniques to simulate a wide array of societal conditions. We establish a comprehensive framework by linking this population model with an intelligent energy management approach. Specifically, in addition to theoretically pinpointing sustainable operational parameters across numerous setups, our empirical results highlight the effectiveness of reinforcement learning agents in executing optimal energy management. In this specific scenario, the optimized agent expands the boundaries of sustainability by up to 200% compared to conventional strategies, suggesting a path toward less disruptive societal transitions.