The wine must be sweeter
With dessert, the wine must be at least as sweet as the food, or it will taste sour.
Sweetness in food makes a dry wine taste thin, bitter and sour. That is why a glass of dry red with chocolate cake is rarely a good experience.
Pick a dessert wine that is sweeter than the dessert, or skip the wine and serve coffee.