(1) The problem might have started only a few weeks ago, perhaps because of a weather change (winter/summer), which affects the humidity and the "static".
(2) Solution: get out of the car, and do not attempt to close the door right away; instead, touch the door with your sleeve, or with your palm, to "discharge" the static; and only later (one second later, not an hour...) close the door. Might not work for all people, but works fine for some.