For simplicity you might consider moving your mame folder to the root of your C:\ drive
C:\MAME
It looks like there's some issue with xAudio2 so try changing the sound to dsound. You can do this by accessing mame.ini and changing sound option to dsound
mame64 -sound dsound setname