Delayed portrait loading got integrated into 0.5.21, stop using it, it will definitely break things. I haven't tested it, but their patch notes noted they pulled it into the official game.
Disabled the delayedloader mod. Got a similar console error.