"rake aborted!" on "sudo bundle exec rake db:create" cmd (macOS M1)

My guess is it probably database service isn’t running. Thus I would suggest to check that Psql is configured and running