If you’re digging into the Trellis issue, it’s probably better to ignore that entirely and reference Trellis itself since there’s been several PR’s that add support for Apple Silicon such as https://github.com/roots/trellis/pull/1431/files
Are you able to reproduce this issue on a new Trellis install instead of an existing project? It has had support out of the box for Apple Silicon for a while now