I use Realtek HD Audio Universal Service.
When I plug in the headphone jack, I get a prompt. If I accept the prompt in time, it connects the headphones. Better than a restart worse than Windows 10 which required no user interaction.
Microsoft - For a company with $198 Billion in revenue in 2023, this forum's solution is the best you can provide for fixing headphones: wipe the computer and start over? For a headphone issue?
Fix your OS.