I had the same issue. Screen went black. Music played though and the cursor changed to the shapez-cursor when hovering over the window.
Rebooting solved the issue.
I noticed that the game started on the macbook screen, even though I had configured it to display on my external monitor. I also had issues with my screen-setup when starting factorio. It often started on the wrong monitor which led me into a deep rabbit-hole of debugging screen-setup on macOS. It sometimes changes the id of the displays after waking up. That's quite annoying and some people have issues with that.
Here are some hints that might help debugging the issue:
I ran displayplacer to check if the id used in the config didn't match the ids assigned by macOS.
displayplacer list | grep -i "contextual screen id" -A7
Contextual screen id: 1
Serial screen id: s4251086178
Type: MacBook built in screen
Resolution: 1728x1117
Hertz: 120
Color Depth: 8
Scaling: on
Origin: (0,0) - main display
--
Contextual screen id: 4
Serial screen id: s16843009
Type: 30 inch external screen
Resolution: 2560x1600
Hertz: 60
Color Depth: 8
Scaling: off
Origin: (1728,-208)
--
Contextual screen id: 5
Serial screen id: s16843009
Type: 30 inch external screen
Resolution: 2560x1600
Hertz: 60
Color Depth: 8
Scaling: off
Origin: (4288,-208)
--
As you'll see it doesn't always use ids 1,2,3.
I have two external monitors of the same make & model and macOS thinks they have the same serial number.
If the bug occurs again I'll run the commands to see if I can fix the issue by correcting the setting.display.target-display entry in the config.