Android messages RCS stops working when I am using Pihole

Pi-hole does not directly interact with RCS. The only way it could interfere is if you or one of your block lists are blocking a domain it needs, in which case, see this FAQ: