The amount of debt is not directly correlated to the health of a company: most companies have debts, and building nuclear reactors is very capital intensive.
EDF net income for 2023 is 10B €, while for H1 2024 is 7B €. From 2007 to 2024 always had a positive net worth except for 2022.
France is a net-exporter, with cheap, reliable and low emission electricity. Germany is almost the opposite of that.
So it had debt. How will they finance the rebuilding?