Headphones Issue - Windows 10

When using Audacity, if I unplug my headphones and plug them back in, the audio will only play through the speakers.
If I go to preferences to try and change back to headphones, the headphones option is no longer available.
I need to note where I am up to in the audio, close audacity and re-open the program to select the headphones as the playback device.

If you change the connected audio devices while Audacity is open, Audacity will not see the change until you tell Audacity to:
“Rescan audio devices”
(bottom of the “Transport” menu: https://manual.audacityteam.org/man/transport_menu.html)