I do not have knowledge of that error, or building in windows. But for working with vscode I would recommend you to try ubuntu. My workflow is to remote ssh from within vscode to a ubuntu server and do all the coding on there and build with make. Then I use a kvm from my development machine to view the screen consumer.
Ok, I’ve heard that the Linux env was more stable . And do use that on my everyday laptop . I’ll give that a try, otherwise just go for Linux all the way