Authentication Fails using multiple tabs in a custom Universal Login

This is a similar issue to this, but it cannot be solved by changing cacheLocation to ‘localStorage’.

The issue is that if I open the login page on multiple tabs, then login and logout on one tab, then try to login on the other tab, I get an “Invalid State,” Anomaly Detected, 403 error on login - or I get redirected to an error callback page like this:

I’m using the Universal login experience with a custom login page. I initialize the client like this:
<Auth0Provider
domain={process.env.REACT_APP_PROVIDER_DOMAIN || ‘’}
clientId={process.env.REACT_APP_AUTH0_CLIENT_ID || ‘’}
redirectUri={NetworkConstants.LOGIN_URI}
prompt=“login”
cacheLocation=“localstorage”
>
Logout looks like this:
logout({ returnTo: NetworkConstants.LOGOUT_URI });

Anything else I can check to fix this?