This happens because there is an issue with the sub claim retrieved from the JWT. To work around it, I set VERIFY_JWT_SUB to False in the Superset config file.
sub
VERIFY_JWT_SUB
False