Windows system will detect on-board speaker or head phone device.
When unplug it, system will show X mark on system's speaker icon.
To fix it, please open Realtek HD Audio Manager and check "Disable front audio jack detection".
You might refer earleir FAQ for this setting.
https://www.biostar.com.tw/app/en/support/faq_content.php?S_ID=469