Choose a beta IPSW for the iMac (24-inch, M4, 2024, Four Ports)
iMac (24-inch, M4, 2024, Four Ports) has 88 beta and 33 official macOS firmware builds available. The newest is macOS 27.3 beta 3 (26C5056a), released , and Apple is currently signing 54 of them, so you can still restore to them.