For moderate headwind, my recommendation would be not to watch your speed readout, but your heart rate or your power meter readout. Riding against the wind is a bit like riding uphill, except you have less to show for the effort. Your effort needs to remain in a sustainable range or you won't finish the ride.
You simply can't win against a 32 km/h wind, unless it's very temporary (exposed mountain pass). That's too fierce. Just maintaining 10 km/h ground speed into it means fighting as much air resistance as going at 42 km/h (26 mph). If it was me, I'd either go ride somewhere else or ride on a different day.