Is thermal expansion/contraction a major design problem for large subsonic airplanes?
Not thermal contraction but condensation of vapor is a problem.

Immediately, fuselage pressurization is the far bigger problem that comes with the altitude changes. But if you operate in hot and moist weather, the moisture in all the air carried inside the fuselage will condense when this air cools down at altitude and will collect somewhere. If no proper drains are included (remember, drain valves and fuselage pressurization do not mix well) and maintenance is sloppy, this accumulated water can weigh several tons.

A special case are foam sandwich structures. PVC foam is the standard in composite gliders, but airliners use honeycomb sandwich structures. When fairings made from PVC foam were tried on airliners, it was found that pressure and temperature cycles damaged the sandwich core pretty quickly. The moisture inside the cells would condense, the cells themselves would crack and bacteria would munch up the soggy remains. Only with honeycomb cores could the sandwich be made durable enough for airliner use.