Scientific Reports, Published online: 05 June 2026; doi:10.1038/s41598-026-56759-0 Synchronous stability analysis and enhancement method for grid connected inverters in weak grids