How to mount circuit boards?

Same kinds of parts are available in other sizes. If you're trying to fit them in holes designed to accept pin legs, you might be out of luck.
Have you looked at "low profile" sockets?

or the pins that are used in them?