Set Safari URL No Longer Working

My guess is you are being bitten by the Sonoma menu system bug:

And so your macro is probably stopping after the File ➤ New Window menu selection. Turn off reporting and aborting of the action when it errors (the system reports an error even after performing the menu).