Possible that the VM you're using has this ""total black screen"" feature that when you minimize or disconnect to VM the screen of VM turns into black and BP can't work because it doesn't see any. That's why when you run it and you tried minimizing or disconnecting from VM, there's an error ""Could not identify process owning the current foreground window""
If that's not case, if you're not minimizing or disconnecting from VM, then maybe there are other factors triggering this error.