Error Code 522 (Console authentication token erro on PC)

I´m getting the following error when launching the game:

“There was an issue validating the console authentication token. This could be due to a temporally outage. (Code 522)”

Additionally I have been getting spikes of latency up to 400ms the past 2 days that last between several minutes and half hour, on and off during the whole gameplay.