There is a very simple solution to this problem. Build more libraries or bigger libraries.
A terrific example is the Jefferson Library in lower Manhattan. It is technically a children's library to the point where it's nearly impossible to find bathrooms that are adult accessible without children.
It is also possibly the best quiet library in the city because the upper levels of the space are adult only and nearly pin drop silent. You can absolutely have both.