extremely common bug!
if you alt tab, and keep the game out of focus for over, lets say... 2 minutes, without coming back to it and alt tabbing out again.
Keeping it unfocused for a while, makes the game freeze blackscreen, requiring a crash to restart.
Been like this since 1.16, maybe even before cant remember.
The option of rendering sound + graphics in backround does nothing regarding this issue, both in 1.16 and 1.17
best way to 'combat' this is to return the focus to the game real quick after about 30 seconds of alt tab, to ''refresh'' the timer prior crash then alt tab again and continue whatever alt tabbed action i was doing on my pc.
keeping the game out of focus on alt tab for about 5 minutes is guranteed black screen freeze, unable to return to the game.
Afterwards a common occurance is launching the game resulting in 2 times or once of it freezing mid load of the game itself, requiring yet again crashing.
Once or twice like that, after the alt tab related crash, and then it returns to normal.
I have attached the logs it always posts when those occured, of 2 instances, one fatter the other one lighter. Hope it will be useful :)