pgAdmin4 v4: TypeError: string indices must be integers
I have the same problem in Ubuntu 18.04 with pgAdmin 4.11 and postgres 11.

What works for me is to go to the process list and kill the pgadmin4 process and reload it. You may do it from Task Manager on windows. Good luck.

BTW Datagrip always work fine for me too.