sc config beep start= disabled does not appear to fix this.
https://www.reddit.com/r/Windows10/comments/c168nq/windows_beeping_when_scrolling_down_really_fast/
Setting the pump loop to have a Sleep(0) which I used to use, appears to resolve this.
Using a Window app with WndProc would probably be better.