What a problem.

Literal

Problem [copula-だ] [reflective-なあ].

なあ is a drawn-out sentence-final particle expressing rumination or mild lament — the speaker is thinking aloud. Ultra-short and colloquial.