Square peg in a round hole
A metaphor for an ill fit or an uncomfortable, untenable situation dates from the late 18th/early 19th century.