I stopped using Windows Terminal altogether because it somehow tends to crash the processes running inside its tabs. And I have a lot of terminals open.
An example issue: https://github.com/microsoft/terminal/issues/16363 . This exact error message with different codes happened to me across many machines at many different times. Never seen anything like that with the classic console host.