I have actually had this a couple of time son my S5 recently and it seems that sometimes the drivers windows is not closing fully, it seems closed but when I pull the window button it nips up just a little, wondering if something is stopping it or confusing it a little.
I have to be careful as I added side assist with exist assist so the door controllers have all been swapped for high level ones, had a funny error with a rear door controller which was faulty and the window switch was revered so up was down and down was up, from the door and the drivers control. Had to swap that controller.
So worth having a quick check on all the windows, just in case your issue is similar?