Accidentally opened the console randomly whilst playing and was greeted with this error.
I had to forcibly close the game after this occurred as I couldn't close the console and pressing enter didn't do anything.
My console works without any problems, did you try to re-create the error a second time?
Remove caches.xml and retry.
@Boss It is yet to happen again, I just thought I should report the bug to let you guys know