How did you install homebrew & postgresql? It also looks like you're using the system Ruby which is ARM based. I'd recommend now a days to use the native arm-based homebrew.
I have been using ARM based everything. Unless if a program requires Rosetta2 (like Microsoft Teams, OneDrive, etc), I will always now default to ARM based.
☒ what issues with wicked_pdf are you having? Webpacker doesn't really have a part in it as far as I know. Are you trying to serve image assets or something via Webpacker instead of the asset pipeline in the PDFs?