Wroclaw was a part of Piast Poland way back in the 10th Century.
So if you’re saying, “don’t lose a war”, and “losing a war means you lose the territory forever”, then it wasn’t Polish anymore then was it?
What about your concern for Brest, etc? There’s a reason why Russia wanted to keep the Polish territory they stole and take German territory at the same time.
Russia should return the Eastern Polish territory that they stole from Poland.