That's odd. I downgraded with asdf to 1.12.2 tried the same thing and it worked on my M1. You could try upgrading either Erlang/Elixir. Failing that, there's a lot of helpful people on elixirforum.com (which now features live chat), so it might be best to ask there.
I had the same issue on Ubuntu (had my "random project" server up to date already, but no Erlang or Elixir). Installing Erlang in addition to Elixir resolved the problem. I don't know exactly what interactions resolved it though.