In the shift towards sustainable energy, DC microgrids have emerged as efficient and reliable alternatives to traditional AC systems, particularly suited for low-voltage applications. The adoption of electric vehicles (EVs) in multi-terminal DC (MTDC) systems introduces challenges in maintaining voltage stability, particularly during master station failures. Our research introduces a decentralized control strategy with multi-mode switching to ensure stability under such conditions. We conduct a comprehensive stability analysis of MTDC systems heavily integrated with EVs, identifying the instability risks and proposing mitigation strategies. The effectiveness of our control approach is validated through simulation studies and a detailed state-space model. Additionally, we explore the integration of renewable energy sources and hydrogen production into MTDC systems for EV charging, which minimizes the need for a new power infrastructure and enhances renewable energy use. This integration optimally reduces renewable energy discard rates, thereby improving energy efficiency without compromising system performance. Our study provides practical insights and theoretical support for renewable energy-driven hydrogen production within DC microgrids. The proposed scheme's performance is validated through simulation studies using a state-space model.