This super unhelpful error is sometimes the result of trying to run an unsigned or developer signed binary on Apple Silicon. Try `xattr -d com.apple.quarantine program.app`, then open it by right clicking on the app, and selecting 'Open' while holding option + command.
Given the audience on HN, I think we can presume any readers of my comment are not trying to execute completely random untrusted binaries. There are legitimate cases when you need to do this to run a binary you trust, but the system doesn't.
I always run everything through virustotal first. (I should probably add that this is step two in my process: step one is to be very cautious and not download most things in the first place.)