So I tried to wipe the cache partition, this didn't help. What solved the problem:
I removed all google accounts (in Google settings), and then added them back. After 15 minutes during which I was sure my contacts were lost forever, everything returned to normal, and I even can see the contacts...