Sheesh, you’re the second person to encounter this today!
This is an issue with some images being emulated on the M1. Simplest fix is doing the build on a remote docker builder using the —remote-only
flag.
Edit: my phone might be turning those two dashes into a long dash. It is two dashes though.