I had to turn both the screensaver and display setting to 'never' to fix the issue. Tried various combinations and have listed them below. I'm on a 2019 Intel based mac pro running 15.1.1 (24B91), selenium 4.5.0 and safari driver is what came bundled with the OS