I just managed to replicate the out-of-range motion -- I think what happened was that I did a manual move to max Z and accidentally went out-of-range while hitting the buttons. Once moved back up to the middle somewhere and starting the print, it seemed to start the print moved back in the Y and also hit the maximum Y position while beginning the print. Move out of range: 280.216 370.703 0.704 [1142.580]
I at least know how to avoid it now, but I'm guessing that last M91 in combination with restoring the state after the PRIME causes the XY to run in relative mode.
https://discord.com/channels/582187371529764864/843098069200666634/1039966075447672932