Ah, that one. So, Apple still has not fixed their linker :(
Be warned that there is an issue with OpenCL on Apple Silicon: GROMACS 2023.2 tests fail/segfault on Apple Silicon with OpenCL (#4852) · Issues · GROMACS / GROMACS · GitLab. Not sure how widespread it is, but if you encounter it, please try the proposed patch.
But your bug also happens without GPU, so that’s not it.