Windows 98 doesnt like the DOS mode legacy drivers.
This sound is troublesome at best. You could try disabling it and using an inexpensive
PCI Sound card based on the CMI8738 chipset.
Even with WIN95 I found that the Yamaha sound would lock up under Quake2 etc.