You can’t. Not on the base system. EL8 has the glibc that it has. Practically everything depends on glibc; one simply does not mess with it.
It is clear that the /home/linuxbrew/.linuxbrew/lib/libsrt.so.1.4has not been built on EL8, but some other platform. The proper thing to do would be to rebuild those binaries on Alma, preferably find a version that has been RPM-packaged for EL8.
An alternative is to use this “linuxbrew” in a container. Those, I presume, can have their own glibc.