Most likely you run out of space on a cookie. Information about assigned roles is put into cookie when user logins. Cookies have limits of how much they can handle.
Limitations on how much you can fit into cookie varies with browsers, but generally this is about 4Kb. However, OWIN version 3 able to split the authentication value into multiple cookies. Yet total maximum headers size for HTTP requests is 16Kb. See this thread about limitations
So 396 roles is a lot. Looks like your authentication information is above 16Kb and your cookies are just not set.
Solution: have less roles. Nothing else you can do about it - this is browsers limitation.
Or you can implement some custom role checking for user. But honestly, this amount of roles stink - something is not right with your authorization system setup.