Revert killall -KILL Dock
So, fortunately I found where the problem was - it was the desktoppicture.db file located in ~/Library/Application Support/Dock/. Probably a corrupted one. Removing it made the macOS replaced it automagically with a new one :)