I resolved this by recreating the missing table "auth_oauth2_linked_login" from an old backup. No idea why that table went missing. Though when creating the table again I got the error about a key being too long, I solved that by using utf8 and not utf8mb4.