When submitting a bug report, please use the below template and thoroughly fill out the necessary information.

Date & Time: Any time
Frequency: All the time
World name: Ultros
Character name: Sophiane Heiral
Retainer name: N/A
NPC name: N/A
Monster name: N/A
Class/Level: Any
Party or solo: Any
In-game time: Any time
Area and coordinates:
Housing: N/A
Steps:
1. Switching from FFXIV to another program and/or plugging in headset.
2. Sound stops working, or the game simply crash with an audio DLL error.
3. The only way to remedy this situation is to restart the game.

Connection Specs
- Type of internet connection/provider: 300Mbps fiber
- Modem maker/model number:

■ PC Specs

To obtain the system information, open the FFXIV launcher and select Config → System Information → Display.

-=-=-=-=- System Information -=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Test on 3 different PC's
1)
Core i5 4400
8GB DDR3
250GB SSD
Geforce GTX 770 2GB
VIA HD Audio (tried 2 different versions of drivers)
Windows 7 & 10

2)
AMD Ryzen 7 1700
16GB DDR4
500GB SSD
Geforce GTX 1060 6GB
Realtek HD Audio (tried 2 different versions of drivers)
Windows 10

3)
AMD Ryzen 7 2700X
16GB DDR4
500GB SSD
Geforce GTX 1070 8GB
Realtek HD Audio (tried 2 different versions of drivers)
Windows 10

I've also tried to buy a Sound Blaster and Asus Xonar audio cards and the result is the same.
Whenever any kind of audio device is detected/updated, either the sound stops working, or the game crash.
It is NOT working as intented.
Is it NOT an issue with any motherboards and/or audio cards.
It is NOT an issue with drivers.
The issues is within your audio code for not implementing some kind of try/catch and return to default, and not telling it to use the "Default Audio" from Windows.
This is the first game i've seen in the last 10 years that doesn't support changing audio output without restarting.